<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- saved from url=(0093)http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Easily Add a Ribbon into a WinForms Application (C#) - CodeProject</title> 
	<link type="text/css" rel="stylesheet" href="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/Main.min.css">

	

<meta name="Description" content="Easily add ribbon to WinForm Application for .NET Framework 2.0, 3.5, 4.0 &amp; 4.5; Author: Member 231420, toATwork, adriancs, Michael Spradlin; Updated: 23 Nov 2013; Section: Tabs &amp; Property Pages; Chapter: Desktop Development; Updated: 23 Nov 2013">
<meta name="Keywords" content="C#, Beginner, Ribbon,Tabs &amp; Property Pages,Desktop Development,Free source code, tutorials">
<meta name="Author" content="Member 231420, toATwork, adriancs, Michael Spradlin">
<meta name="Rating" content="General">
<meta name="Robots" content="index, follow, NOODP">
<meta name="Revisit-After" content="1 days">
<meta name="application-name" content="CodeProject">

<link rel="dns-prefetch" href="http://ajax.googleapis.com/"> 
<link rel="canonical" href="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/Easily Add a Ribbon into a WinForms Application (C#) - CodeProject.htm">


<link rel="alternate" type="application/rss+xml" title="CodeProject Latest articles - All Topics" href="http://www.codeproject.com/WebServices/ArticleRSS.aspx?cat=1">
<link rel="alternate" type="application/rss+xml" title="CodeProject Latest articles - Android" href="http://www.codeproject.com/WebServices/ArticleRSS.aspx?cat=22">
<link rel="alternate" type="application/rss+xml" title="CodeProject Latest articles - MFC/C++" href="http://www.codeproject.com/WebServices/ArticleRSS.aspx?cat=2">
<link rel="alternate" type="application/rss+xml" title="CodeProject Latest articles - C#" href="http://www.codeproject.com/WebServices/ArticleRSS.aspx?cat=3">
<link rel="alternate" type="application/rss+xml" title="CodeProject Latest articles - VB.NET" href="http://www.codeproject.com/WebServices/ArticleRSS.aspx?cat=6">
<link rel="alternate" type="application/rss+xml" title="CodeProject Latest articles - Mobile" href="http://www.codeproject.com/WebServices/ArticleRSS.aspx?cat=18">
<link rel="alternate" type="application/rss+xml" title="CodeProject Lounge Postings" href="http://www.codeproject.com/webservices/LoungeRSS.aspx">
<link rel="search" type="application/opensearchdescription+xml" title="CodeProject" href="http://www.codeproject.com/info/OpenSearch.xml">

	<!--<base target="_top">--><base href="." target="_top">
	<link rel="icon" href="http://www.codeproject.com/favicon.ico" type="image/ico">
<link rel="shortcut icon" href="http://www.codeproject.com/favicon.ico" type="image/ico">
<link rel="apple-touch-icon" href="http://www.codeproject.com/images/FavIcon-Apple.png" type="image/png">
<script src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/quant.js" async="" type="text/javascript"></script><script src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/quant.js" async="" type="text/javascript"></script><script src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/cb=gapi.loaded_1" async=""></script><script src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/cb=gapi.loaded_0" async=""></script><script id="twitter-wjs" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/widgets.js"></script><script type="text/javascript" async="" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/plusone.js" gapi_processed="true"></script><script id="facebook-jssdk" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/all.js"></script><script type="text/javascript" language="Javascript">//<![CDATA[
function defrm () { /* thanks twitter */ document.write = ''; window.top.location = window.self.location;  setTimeout(function() { document.body.innerHTML = ''; }, 0);  window.self.onload = function(evt) { document.body.innerHTML = ''; }; }if (window.top !== window.self) {  try {  if (window.top.location.host) { /* will throw */ } else { defrm(); /* chrome */ }  } catch (ex) { defrm(); /* everyone else */ } }if (typeof(DemoUrl)!='undefined')   document.write(unescape('%3Cme')+'ta http'+'-equiv="re'+'fresh"                  con'+'tent="1;url='+DemoUrl+unescape('"%3CE'));
function _dmBootstrap(file) { var _dma = document.createElement('script');  _dma.type = 'text/javascript'; _dma.async = true;  _dma.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + file; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(_dma);}
function _dmFollowup(file) { if (typeof DMAds === 'undefined')  _dmBootstrap('cdn2.developermedia.com/a.min.js?dt=2.8.140315.1');}
(function () { _dmBootstrap('cdn1.developermedia.com/a.min.js?dt=2.8.140315.1'); setTimeout(_dmFollowup, 2000);})();

//]]>
</script><script type="text/javascript" async="" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/a.min.js"></script>

	




<script type="text/javascript">
	var _gaq = _gaq || [];
	_gaq.push(['_setAccount', 'UA-1735123-1']);
	_gaq.push(['_trackPageview']);
	_gaq.push(['_setDomainName', 'www.codeproject.com']);
	_gaq.push(['_setSessionTimeout', '1200']); 

	(function () {
		var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
	})(); 
</script><script type="text/javascript" async="" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/ga.js"></script>


<script src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/nonSecureAnonymousFramework"></script><script type="text/javascript" async="" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/a.min(1).js"></script><style type="text/css">* html #li_ui_li_gen_1395395207258_0 a#li_ui_li_gen_1395395207258_0-link{height:1% !important;}#li_ui_li_gen_1395395207258_0{position:relative !important;overflow:visible !important;display:block !important;}#li_ui_li_gen_1395395207258_0 a#li_ui_li_gen_1395395207258_0-link{border:0 !important;height:20px !important;text-decoration:none !important;padding:0 !important;margin:0 !important;display:inline-block !important;}#li_ui_li_gen_1395395207258_0 a#li_ui_li_gen_1395395207258_0-link:link, #li_ui_li_gen_1395395207258_0 a#li_ui_li_gen_1395395207258_0-link:visited, #li_ui_li_gen_1395395207258_0 a#li_ui_li_gen_1395395207258_0-link:hover, #li_ui_li_gen_1395395207258_0 a#li_ui_li_gen_1395395207258_0-link:active{border:0 !important;text-decoration:none !important;}#li_ui_li_gen_1395395207258_0 a#li_ui_li_gen_1395395207258_0-link:after{content:"." !important;display:block !important;clear:both !important;visibility:hidden !important;line-height:0 !important;height:0 !important;}#li_ui_li_gen_1395395207258_0 #li_ui_li_gen_1395395207258_0-logo{background:url(http://s.c.lnkd.licdn.com/scds/common/u/img/sprite/sprite_connect_v13.png) 0px -276px no-repeat !important;cursor:pointer !important;border:0 !important;text-indent:-9999em !important;overflow:hidden !important;padding:0 !important;margin:0 !important;position:absolute !important;left:0px !important;top:0px !important;display:block !important;width:20px !important;height:20px !important;float:right !important;}#li_ui_li_gen_1395395207258_0.hovered #li_ui_li_gen_1395395207258_0-logo{background-position:-20px -276px !important;}#li_ui_li_gen_1395395207258_0.clicked #li_ui_li_gen_1395395207258_0-logo, #li_ui_li_gen_1395395207258_0.down #li_ui_li_gen_1395395207258_0-logo{background-position:-40px -276px !important;}.IN-shadowed #li_ui_li_gen_1395395207258_0 #li_ui_li_gen_1395395207258_0-logo{}#li_ui_li_gen_1395395207258_0 #li_ui_li_gen_1395395207258_0-title{color:#333 !important;cursor:pointer !important;display:block !important;white-space:nowrap !important;float:left !important;margin-left:1px !important;vertical-align:top !important;overflow:hidden !important;text-align:center !important;height:18px !important;padding:0 4px 0 23px !important;border:1px solid #000 !important;border-top-color:#E2E2E2 !important;border-right-color:#BFBFBF !important;border-bottom-color:#B9B9B9 !important;border-left-color:#E2E2E2 !important;border-left:0 !important;text-shadow:#FFFFFF -1px 1px 0 !important;line-height:20px !important;border-radius:0 !important;-webkit-border-radius:0 !important;border-top-right-radius:2px !important;border-bottom-right-radius:2px !important;-webkit-border-top-right-radius:2px !important;-webkit-border-bottom-right-radius:2px !important;background-color:#ECECEC !important;background-image:-webkit-gradient(linear, left top, left bottom, color-stop(0%,#FEFEFE), color-stop(100%,#ECECEC)) !important; background-image: -webkit-linear-gradient(top, #FEFEFE 0%, #ECECEC 100%) !important;}#li_ui_li_gen_1395395207258_0.hovered #li_ui_li_gen_1395395207258_0-title{border:1px solid #000 !important;border-top-color:#ABABAB !important;border-right-color:#9A9A9A !important;border-bottom-color:#787878 !important;border-left-color:#04568B !important;border-left:0 !important;background-color:#EDEDED !important;background-image:-webkit-gradient(linear, left top, left bottom, color-stop(0%,#EDEDED), color-stop(100%,#DEDEDE)) !important; background-image: -webkit-linear-gradient(top, #EDEDED 0%, #DEDEDE 100%) !important;}#li_ui_li_gen_1395395207258_0.clicked #li_ui_li_gen_1395395207258_0-title, #li_ui_li_gen_1395395207258_0.down #li_ui_li_gen_1395395207258_0-title{color:#666 !important;border:1px solid #000 !important;border-top-color:#B6B6B6 !important;border-right-color:#B3B3B3 !important;border-bottom-color:#9D9D9D !important;border-left-color:#49627B !important;border-left:0 !important;background-color:#DEDEDE !important;background-image:-webkit-gradient(linear, left top, left bottom, color-stop(0%,#E3E3E3), color-stop(100%,#EDEDED)) !important; background-image: -webkit-linear-gradient(top, #E3E3E3 0%, #EDEDED 100%) !important;}.IN-shadowed #li_ui_li_gen_1395395207258_0 #li_ui_li_gen_1395395207258_0-title{}.IN-shadowed #li_ui_li_gen_1395395207258_0.hovered #li_ui_li_gen_1395395207258_0-title{}.IN-shadowed #li_ui_li_gen_1395395207258_0.clicked #li_ui_li_gen_1395395207258_0-title, .IN-shadowed #li_ui_li_gen_1395395207258_0.down #li_ui_li_gen_1395395207258_0-title{}#li_ui_li_gen_1395395207258_0 #li_ui_li_gen_1395395207258_0-title-text, #li_ui_li_gen_1395395207258_0 #li_ui_li_gen_1395395207258_0-title-text *{color:#333 !important;font-size:11px !important;font-family:Arial, sans-serif !important;font-weight:bold !important;font-style:normal !important;display:inline-block !important;background:transparent none !important;vertical-align:top !important;height:18px !important;line-height:20px !important;float:none !important;}#li_ui_li_gen_1395395207258_0 #li_ui_li_gen_1395395207258_0-title-text strong{font-weight:bold !important;}#li_ui_li_gen_1395395207258_0 #li_ui_li_gen_1395395207258_0-title-text em{font-style:italic !important;}#li_ui_li_gen_1395395207258_0.hovered #li_ui_li_gen_1395395207258_0-title-text, #li_ui_li_gen_1395395207258_0.hovered #li_ui_li_gen_1395395207258_0-title-text *{color:#000 !important;}#li_ui_li_gen_1395395207258_0.clicked #li_ui_li_gen_1395395207258_0-title-text, #li_ui_li_gen_1395395207258_0.down #li_ui_li_gen_1395395207258_0-title-text, #li_ui_li_gen_1395395207258_0.clicked #li_ui_li_gen_1395395207258_0-title-text *, #li_ui_li_gen_1395395207258_0.down #li_ui_li_gen_1395395207258_0-title-text *{color:#666 !important;}#li_ui_li_gen_1395395207258_0 #li_ui_li_gen_1395395207258_0-title #li_ui_li_gen_1395395207258_0-mark{display:inline-block !important;width:0px !important;overflow:hidden !important;}.success #li_ui_li_gen_1395395207258_0 #li_ui_li_gen_1395395207258_0-title{color:#333 !important;border-top-color:#E2E2E2 !important;border-right-color:#BFBFBF !important;border-bottom-color:#B9B9B9 !important;border-left-color:#E2E2E2 !important;background-color:#ECECEC !important;background-image:-webkit-gradient(linear, left top, left bottom, color-stop(0%,#FEFEFE), color-stop(100%,#ECECEC)) !important; background-image: -webkit-linear-gradient(top, #FEFEFE 0%, #ECECEC 100%) !important;}.success #li_ui_li_gen_1395395207258_0 #li_ui_li_gen_1395395207258_0-title-text, .success #li_ui_li_gen_1395395207258_0 #li_ui_li_gen_1395395207258_0-title-text *{color:#333 !important;}.IN-shadowed .success #li_ui_li_gen_1395395207258_0 #li_ui_li_gen_1395395207258_0-title{}.success #li_ui_li_gen_1395395207258_0.hovered #li_ui_li_gen_1395395207258_0-title{color:#000 !important;border-top-color:#ABABAB !important;border-right-color:#9A9A9A !important;border-bottom-color:#787878 !important;border-left-color:#04568B !important;background-color:#EDEDED !important;background-image:-webkit-gradient(linear, left top, left bottom, color-stop(0%,#EDEDED), color-stop(100%,#DEDEDE)) !important; background-image: -webkit-linear-gradient(top, #EDEDED 0%, #DEDEDE 100%) !important;}.success #li_ui_li_gen_1395395207258_0.hovered #li_ui_li_gen_1395395207258_0-title-text, .success #li_ui_li_gen_1395395207258_0.hovered #li_ui_li_gen_1395395207258_0-title-text *{color:#000 !important;}.success #li_ui_li_gen_1395395207258_0.clicked #li_ui_li_gen_1395395207258_0-title, .success #li_ui_li_gen_1395395207258_0.down #li_ui_li_gen_1395395207258_0-title{color:#666 !important;border-top-color:#B6B6B6 !important;border-right-color:#B3B3B3 !important;border-bottom-color:#9D9D9D !important;border-left-color:#49627B !important;background-color:#DEDEDE !important;background-image:-webkit-gradient(linear, left top, left bottom, color-stop(0%,#E3E3E3), color-stop(100%,#EDEDED)) !important; background-image: -webkit-linear-gradient(top, #E3E3E3 0%, #EDEDED 100%) !important;}.success #li_ui_li_gen_1395395207258_0.clicked #li_ui_li_gen_1395395207258_0-title-text, .success #li_ui_li_gen_1395395207258_0.down #li_ui_li_gen_1395395207258_0-title-text, .success #li_ui_li_gen_1395395207258_0.clicked #li_ui_li_gen_1395395207258_0-title-text *, .success #li_ui_li_gen_1395395207258_0.down #li_ui_li_gen_1395395207258_0-title-text *{color:#666 !important;}.IN-shadowed .success #li_ui_li_gen_1395395207258_0.clicked #li_ui_li_gen_1395395207258_0-title, .IN-shadowed .success #li_ui_li_gen_1395395207258_0.down #li_ui_li_gen_1395395207258_0-title{}#li_ui_li_gen_1395395207277_1-container.IN-right {display:inline-block !important;float:left !important;overflow:visible !important;position:relative !important;height:18px !important;padding-left:2px !important;line-height:1px !important;cursor:pointer !important;}#li_ui_li_gen_1395395207277_1.IN-right {display:block !important;float:left !important;height:18px !important;margin-right:4px !important;padding-right:4px !important;background:url(http://s.c.lnkd.licdn.com/scds/common/u/img/sprite/sprite_connect_v13.png) right -100px no-repeat !important;}#li_ui_li_gen_1395395207277_1-inner.IN-right {display:block !important;float:left !important;padding-left:8px !important;text-align:center !important;background:url(http://s.c.lnkd.licdn.com/scds/common/u/img/sprite/sprite_connect_v13.png) 0px -60px no-repeat !important;}#li_ui_li_gen_1395395207277_1-content.IN-right {display:inline !important;font-size:11px !important;color:#04558B !important;font-weight:bold !important;font-family:Arial, sans-serif !important;line-height:18px !important;padding:0 5px 0 5px !important;}#li_ui_li_gen_1395395207277_1-container.IN-hovered #li_ui_li_gen_1395395207277_1.IN-right, #li_ui_li_gen_1395395207277_1-container.IN-clicked #li_ui_li_gen_1395395207277_1.IN-right, #li_ui_li_gen_1395395207277_1-container.IN-down #li_ui_li_gen_1395395207277_1.IN-right {background-position-y:-120px !important;}#li_ui_li_gen_1395395207277_1-container.IN-hovered #li_ui_li_gen_1395395207277_1-inner.IN-right, #li_ui_li_gen_1395395207277_1-container.IN-clicked #li_ui_li_gen_1395395207277_1-inner.IN-right, #li_ui_li_gen_1395395207277_1-container.IN-down #li_ui_li_gen_1395395207277_1-inner.IN-right {background-position-y:-80px !important;}#li_ui_li_gen_1395395207277_1-container.IN-empty {display:none !important;}#li_ui_li_gen_1395395207277_1-container.IN-hidden #li_ui_li_gen_1395395207277_1 {display:none !important;}</style><style type="text/css">.fb_hidden{position:absolute;top:-10000px;z-index:10001}.fb_invisible{display:none}.fb_reset{background:none;border:0;border-spacing:0;color:#000;cursor:auto;direction:ltr;font-family:"lucida grande", tahoma, verdana, arial, sans-serif;font-size:11px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:1;margin:0;overflow:visible;padding:0;text-align:left;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;visibility:visible;white-space:normal;word-spacing:normal}.fb_reset>div{overflow:hidden}.fb_link img{border:none}
.fb_dialog{background:rgba(82, 82, 82, .7);position:absolute;top:-10000px;z-index:10001}.fb_reset .fb_dialog_legacy{overflow:visible}.fb_dialog_advanced{padding:10px;-moz-border-radius:8px;-webkit-border-radius:8px;border-radius:8px}.fb_dialog_content{background:#fff;color:#333}.fb_dialog_close_icon{background:url(http://static.ak.fbcdn.net/rsrc.php/v2/yq/r/IE9JII6Z1Ys.png) no-repeat scroll 0 0 transparent;_background-image:url(http://static.ak.fbcdn.net/rsrc.php/v2/yL/r/s816eWC-2sl.gif);cursor:pointer;display:block;height:15px;position:absolute;right:18px;top:17px;width:15px}.fb_dialog_mobile .fb_dialog_close_icon{top:5px;left:5px;right:auto}.fb_dialog_padding{background-color:transparent;position:absolute;width:1px;z-index:-1}.fb_dialog_close_icon:hover{background:url(http://static.ak.fbcdn.net/rsrc.php/v2/yq/r/IE9JII6Z1Ys.png) no-repeat scroll 0 -15px transparent;_background-image:url(http://static.ak.fbcdn.net/rsrc.php/v2/yL/r/s816eWC-2sl.gif)}.fb_dialog_close_icon:active{background:url(http://static.ak.fbcdn.net/rsrc.php/v2/yq/r/IE9JII6Z1Ys.png) no-repeat scroll 0 -30px transparent;_background-image:url(http://static.ak.fbcdn.net/rsrc.php/v2/yL/r/s816eWC-2sl.gif)}.fb_dialog_loader{background-color:#f2f2f2;border:1px solid #606060;font-size:24px;padding:20px}.fb_dialog_top_left,.fb_dialog_top_right,.fb_dialog_bottom_left,.fb_dialog_bottom_right{height:10px;width:10px;overflow:hidden;position:absolute}.fb_dialog_top_left{background:url(http://static.ak.fbcdn.net/rsrc.php/v2/ye/r/8YeTNIlTZjm.png) no-repeat 0 0;left:-10px;top:-10px}.fb_dialog_top_right{background:url(http://static.ak.fbcdn.net/rsrc.php/v2/ye/r/8YeTNIlTZjm.png) no-repeat 0 -10px;right:-10px;top:-10px}.fb_dialog_bottom_left{background:url(http://static.ak.fbcdn.net/rsrc.php/v2/ye/r/8YeTNIlTZjm.png) no-repeat 0 -20px;bottom:-10px;left:-10px}.fb_dialog_bottom_right{background:url(http://static.ak.fbcdn.net/rsrc.php/v2/ye/r/8YeTNIlTZjm.png) no-repeat 0 -30px;right:-10px;bottom:-10px}.fb_dialog_vert_left,.fb_dialog_vert_right,.fb_dialog_horiz_top,.fb_dialog_horiz_bottom{position:absolute;background:#525252;filter:alpha(opacity=70);opacity:.7}.fb_dialog_vert_left,.fb_dialog_vert_right{width:10px;height:100%}.fb_dialog_vert_left{margin-left:-10px}.fb_dialog_vert_right{right:0;margin-right:-10px}.fb_dialog_horiz_top,.fb_dialog_horiz_bottom{width:100%;height:10px}.fb_dialog_horiz_top{margin-top:-10px}.fb_dialog_horiz_bottom{bottom:0;margin-bottom:-10px}.fb_dialog_iframe{line-height:0}.fb_dialog_content .dialog_title{background:#6d84b4;border:1px solid #3b5998;color:#fff;font-size:14px;font-weight:bold;margin:0}.fb_dialog_content .dialog_title>span{background:url(http://static.ak.fbcdn.net/rsrc.php/v2/yd/r/Cou7n-nqK52.gif) no-repeat 5px 50%;float:left;padding:5px 0 7px 26px}body.fb_hidden{-webkit-transform:none;height:100%;margin:0;overflow:visible;position:absolute;top:-10000px;left:0;width:100%}.fb_dialog.fb_dialog_mobile.loading{background:url(http://static.ak.fbcdn.net/rsrc.php/v2/ya/r/3rhSv5V8j3o.gif) white no-repeat 50% 50%;min-height:100%;min-width:100%;overflow:hidden;position:absolute;top:0;z-index:10001}.fb_dialog.fb_dialog_mobile.loading.centered{max-height:590px;min-height:590px;max-width:500px;min-width:500px}#fb-root #fb_dialog_ipad_overlay{background:rgba(0, 0, 0, .45);position:absolute;left:0;top:0;width:100%;min-height:100%;z-index:10000}#fb-root #fb_dialog_ipad_overlay.hidden{display:none}.fb_dialog.fb_dialog_mobile.loading iframe{visibility:hidden}.fb_dialog_content .dialog_header{-webkit-box-shadow:white 0 1px 1px -1px inset;background:-webkit-gradient(linear, 0% 0%, 0% 100%, from(#738ABA), to(#2C4987));border-bottom:1px solid;border-color:#1d4088;color:#fff;font:14px Helvetica, sans-serif;font-weight:bold;text-overflow:ellipsis;text-shadow:rgba(0, 30, 84, .296875) 0 -1px 0;vertical-align:middle;white-space:nowrap}.fb_dialog_content .dialog_header table{-webkit-font-smoothing:subpixel-antialiased;height:43px;width:100%}.fb_dialog_content .dialog_header td.header_left{font-size:12px;padding-left:5px;vertical-align:middle;width:60px}.fb_dialog_content .dialog_header td.header_right{font-size:12px;padding-right:5px;vertical-align:middle;width:60px}.fb_dialog_content .touchable_button{background:-webkit-gradient(linear, 0% 0%, 0% 100%, from(#4966A6), color-stop(.5, #355492), to(#2A4887));border:1px solid #29447e;-webkit-background-clip:padding-box;-webkit-border-radius:3px;-webkit-box-shadow:rgba(0, 0, 0, .117188) 0 1px 1px inset, rgba(255, 255, 255, .167969) 0 1px 0;display:inline-block;margin-top:3px;max-width:85px;line-height:18px;padding:4px 12px;position:relative}.fb_dialog_content .dialog_header .touchable_button input{border:none;background:none;color:#fff;font:12px Helvetica, sans-serif;font-weight:bold;margin:2px -12px;padding:2px 6px 3px 6px;text-shadow:rgba(0, 30, 84, .296875) 0 -1px 0}.fb_dialog_content .dialog_header .header_center{color:#fff;font-size:16px;font-weight:bold;line-height:18px;text-align:center;vertical-align:middle}.fb_dialog_content .dialog_content{background:url(http://static.ak.fbcdn.net/rsrc.php/v2/y9/r/jKEcVPZFk-2.gif) no-repeat 50% 50%;border:1px solid #555;border-bottom:0;border-top:0;height:150px}.fb_dialog_content .dialog_footer{background:#f2f2f2;border:1px solid #555;border-top-color:#ccc;height:40px}#fb_dialog_loader_close{float:left}.fb_dialog.fb_dialog_mobile .fb_dialog_close_button{text-shadow:rgba(0, 30, 84, .296875) 0 -1px 0}.fb_dialog.fb_dialog_mobile .fb_dialog_close_icon{visibility:hidden}
.fb_iframe_widget{display:inline-block;position:relative}.fb_iframe_widget span{display:inline-block;position:relative;text-align:justify}.fb_iframe_widget iframe{position:absolute}.fb_iframe_widget_lift{z-index:1}.fb_hide_iframes iframe{position:relative;left:-10000px}.fb_iframe_widget_loader{position:relative;display:inline-block}.fb_iframe_widget_fluid{display:inline}.fb_iframe_widget_fluid span{width:100%}.fb_iframe_widget_loader iframe{min-height:32px;z-index:2;zoom:1}.fb_iframe_widget_loader .FB_Loader{background:url(http://static.ak.fbcdn.net/rsrc.php/v2/y9/r/jKEcVPZFk-2.gif) no-repeat;height:32px;width:32px;margin-left:-16px;position:absolute;left:50%;z-index:4}
.fb_connect_bar_container div,.fb_connect_bar_container span,.fb_connect_bar_container a,.fb_connect_bar_container img,.fb_connect_bar_container strong{background:none;border-spacing:0;border:0;direction:ltr;font-style:normal;font-variant:normal;letter-spacing:normal;line-height:1;margin:0;overflow:visible;padding:0;text-align:left;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;visibility:visible;white-space:normal;word-spacing:normal;vertical-align:baseline}.fb_connect_bar_container{position:fixed;left:0 !important;right:0 !important;height:42px !important;padding:0 25px !important;margin:0 !important;vertical-align:middle !important;border-bottom:1px solid #333 !important;background:#3b5998 !important;z-index:99999999 !important;overflow:hidden !important}.fb_connect_bar_container_ie6{position:absolute;top:expression(document.compatMode=="CSS1Compat"? document.documentElement.scrollTop+"px":body.scrollTop+"px")}.fb_connect_bar{position:relative;margin:auto;height:100%;width:100%;padding:6px 0 0 0 !important;background:none;color:#fff !important;font-family:"lucida grande", tahoma, verdana, arial, sans-serif !important;font-size:13px !important;font-style:normal !important;font-variant:normal !important;font-weight:normal !important;letter-spacing:normal !important;line-height:1 !important;text-decoration:none !important;text-indent:0 !important;text-shadow:none !important;text-transform:none !important;white-space:normal !important;word-spacing:normal !important}.fb_connect_bar a:hover{color:#fff}.fb_connect_bar .fb_profile img{height:30px;width:30px;vertical-align:middle;margin:0 6px 5px 0}.fb_connect_bar div a,.fb_connect_bar span,.fb_connect_bar span a{color:#bac6da;font-size:11px;text-decoration:none}.fb_connect_bar .fb_buttons{float:right;margin-top:7px}
.fbpluginrecommendationsbarleft,.fbpluginrecommendationsbarright{position:fixed !important;bottom:0;z-index:999}.fbpluginrecommendationsbarleft{left:10px}.fbpluginrecommendationsbarright{right:10px}</style></head>	

<body class="chrome chrome35" data-twttr-rendered="true">

<a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#Main"><img alt="Click here to Skip to main content" class="access-link" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t.gif"></a>





<div class="page-background">

	
	

	

	<table id="ctl00_Bn" style="width:100%;height:135px" cellpadding="0" cellspacing="0" class="banner fixed">
	<tbody><tr valign="bottom">
		<td class="blank-background" style="height:31px">&nbsp;</td>
		<td class="blank-background" rowspan="3" style="width:250px;height:135px"><a href="http://www.codeproject.com/"><img id="ctl00_Logo" tabindex="1" title="CodeProject" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/logo250x135.gif" alt="Home" style="height:135px;width:250px;border-width:0px;"></a></td>
		<td class="blank-background align-right" style="width:728px;height:31px">

<div class="container memberbar clearfix">

	<div id="ctl00_MemberMenu_GenInfo" class="float-left">10,480,416 members (80,159 online) &nbsp; &nbsp; </div>

	<div class="float-left">
		
	</div>

	<div class="float-right">

        <span class="tooltip">
            <a href="http://workspaces.codeproject.com/" id="ctl00_MemberMenu_Workspaces"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/workspaces32.png" height="16px" width="110px" style="border:0;margin: -2px 25px 0 0;vertical-align:middle"></a>

            <div class="tooltip-flyout workspaces">

                <h3>CodeProject::Workspaces</h3>
                <p class="bold">Code. Collaborate. Organize.</p>
	                <div class="list-item"><a href="https://workspaces.codeproject.com/">Workspaces Home</a></div>
	                <div class="list-item"><a href="http://www.codeproject.com/Forums/1854922/Workspaces-Forum.aspx">Discuss Workspaces</a></div>
                <p style="margin-top:10px" class="bold">No Limits. <a href="https://workspaces.codeproject.com/">Try it Today.</a></p>
			</div>

		</span>

		

		

		

			<script type="text/javascript">//<!--
			function doSubmit(secure)
			{
				if (secure)
					document.subForm.action = "https://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs"
				else
					document.subForm.action = "https://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs"
				document.subForm.submit();
				return true;
			}//-->
			</script>

			<a name="SignUp"></a>
			<span class="member-signin tooltip">
				<span><a href="https://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs">Sign in</a></span>

				<div class="tooltip-flyout">
					<form name="subForm" id="subForm" action="https://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs" method="post" class="tight">

						
						<input id="FormName" name="FormName" value="MenuBarForm" type="hidden">

						<div>Email</div>
						<div><input class="small-text" type="email" name="Email" id="Email"></div>
						<div>Password</div>
						<div><input class="small-text" type="password" name="Password" id="Password"></div>
						<div class="action">
							
<script type="text/javascript">
function Join(){
 var url = 'http://www.codeproject.com/script/Membership/Modify.aspx?meml=' + document.subForm.Email.value;
 document.location.href=url;return false;
}
document.write('<input type="button" class="create"   onclick="return Join();" value="Join"');
document.write('<input type="hidden" name="fld_quicksign"   value="true" />');
</script><input type="button" class="create" onclick="return Join();" value="Join" <input="" name="fld_quicksign">
							<input type="submit" value="Sign in" class="signin" onclick="return doSubmit(false);">
						</div>

						<div class="container">
							
							&nbsp;
							<a id="ctl00_MemberMenu_SendPassword" class="forgot float-right" href="http://www.codeproject.com/script/Membership/SendPassword.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs">Forgot your password?</a>
						</div>
					</form>

					<hr class="divider-dark">

					Sign in using <a class="oauth" title="Sign in using Facebook" href="http://www.codeproject.com/script/Membership/OAuthLogOn.aspx?auth=Facebook"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/facebook.png" style="vertical-align:middle;padding-right:3px;border:0;"></a>
<a class="oauth" title="Sign in using Google" href="http://www.codeproject.com/script/Membership/OAuthLogOn.aspx?auth=Google"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/google-plus.png" style="vertical-align:middle;padding-right:3px;border:0;"></a>
<a class="oauth" title="Sign in using Linkedin" href="http://www.codeproject.com/script/Membership/OAuthLogOn.aspx?auth=LinkedIn"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/linkedin.png" style="vertical-align:middle;padding-right:3px;border:0;"></a>

				</div>
		
	</span></div>
</div></td>
		<td class="blank-background" style="height:31px">&nbsp;</td>
	</tr>
	<tr valign="middle">
		<td class="theme1-background" style="height:94px">&nbsp;</td>
		<td class="theme1-background ad"><div class="msg-728x90" data-format="728x90" data-type="ad" data-publisher="lqm.codeproject.site" data-zone="ros" data-tags="C#, Beginner, Ribbon,rating4.5"><iframe id="dmad1" allowtransparency="false" style="z-index:10" width="728" height="90" marginwidth="0" marginheight="0" frameborder="0" scrolling="no"></iframe></div></td>
		<td class="theme1-background" style="height:94px">&nbsp;</td>
	</tr>
	<tr valign="top">
		<td style="height: 10px;"></td>
		<td style="height: 10px;" class="blank-background"></td>
		<td style="height: 10px;"></td>
	</tr>
</tbody></table>


	<a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#Main"><img alt="Click here to Skip to main content" class="access-link" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t.gif"></a>

	
	<div id="ctl00_TPR" class="sub-headerbar fixed">
	<table cellpadding="0" cellspacing="0" class="extended"><tbody><tr><td nowrap="nowrap">
		

<div class="navbar clearfix">
<ul class="navmenu openable">

<li><a id="ctl00_TopNavBar_Home" href="http://www.codeproject.com/">home</a>


</li><li class=""><a id="ctl00_TopNavBar_Art" class="down selected" href="http://www.codeproject.com/script/Articles/Latest.aspx">articles</a>

	<ul>
		<li class=""><a id="ctl00_TopNavBar_ArtTopicList" class="fly" onmouseover="navBarMenu.ShowMap(this, &#39;ctl00_TopNavBar_MapFlyout&#39;);" href="http://www.codeproject.com/script/Content/SiteMap.aspx">Chapters and Sections<span class="has-submenu">&gt;</span></a><ul id="ctl00_TopNavBar_MapFlyout">
			<li>
				<div id="siteMap">
					<img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/animated.gif" alt="loading" style="margin:150px;width:100px;height:100px;">
				</div>
			</li>
			</ul>
		</li>
		<li><a id="ctl00_TopNavBar_ArtSearch" class="fly break" href="http://www.codeproject.com/search.aspx">Search</a></li>
		<li><a id="ctl00_TopNavBar_ArtLatestArts" class="fly" href="http://www.codeproject.com/script/Articles/Latest.aspx?at=1,3,7">Latest Articles</a></li>
		<li><a id="ctl00_TopNavBar_ArtLatestTips" class="fly" href="http://www.codeproject.com/script/Articles/Latest.aspx?at=6">Latest Tips/Tricks</a></li>
		<li><a id="ctl00_TopNavBar_ArtTop" class="fly" href="http://www.codeproject.com/script/Articles/TopArticles.aspx?ta_so=5">Top Articles</a></li>
		<li><a id="ctl00_TopNavBar_ArtBeginner" class="fly" href="http://www.codeproject.com/search.aspx?aidlst=152&sa_us=True">Beginner Articles</a></li>
		<li><a id="ctl00_TopNavBar_ArtBlogArticles" class="fly break" href="http://www.codeproject.com/script/Articles/BlogArticleList.aspx">Technical Blogs</a></li>
		<li><a id="ctl00_TopNavBar_ArtGuide" class="fly" href="http://www.codeproject.com/info/Submit.aspx">Posting/Update Guidelines</a></li>
		<li><a id="ctl00_TopNavBar_ArtHelpForum" class="fly" href="http://www.codeproject.com/Forums/1641/Article-Writing.aspx">Article Help Forum</a></li>
		<li><a id="ctl00_TopNavBar_ArtCompetition" class="fly break" href="http://www.codeproject.com/script/Awards/CurrentCompetitions.aspx?cmpTpId=1">Article Competition</a></li>
		<li><a id="ctl00_TopNavBar_ArtPostArticle" class="fly highlight1" href="http://www.codeproject.com/script/Articles/Submit.aspx">
			<img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/write-gr.png" width="19px" height="13px"> Submit an article or tip
			</a></li>
		<li><a id="ctl00_TopNavBar_ArtPostBlog" class="fly highlight2" href="http://www.codeproject.com/script/Articles/BlogFeed.aspx">
			<img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/write-or.png" width="19px" height="13px"> Post your Blog
			</a></li>		<li class="last"></li>
	</ul>

</li>



<li class=""><a id="ctl00_TopNavBar_Answers" href="http://www.codeproject.com/script/Answers/List.aspx?tab=active">quick answers</a>
	<ul>
		<li id="ctl00_TopNavBar_AQL"><a id="ctl00_TopNavBar_ArticleQuestion" class="fly highlight1" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#_comments">
			<img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/write-gr.png" width="19px" height="13px"> Ask a Question about this 
			article</a>
		</li>

		<li><a id="ctl00_TopNavBar_QAAsk" class="fly highlight2" href="http://www.codeproject.com/Questions/ask.aspx"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/write-or.png" width="19px" height="13px"> Ask a Question</a></li>

		
		<li><a id="ctl00_TopNavBar_QAUnanswered" class="fly" href="http://www.codeproject.com/script/Answers/List.aspx?tab=unanswered">View Unanswered Questions</a></li>
		<li><a id="ctl00_TopNavBar_QALatest" class="fly" href="http://www.codeproject.com/script/Answers/List.aspx?tab=active">View All Questions...</a></li>
		
				<li><a id="ctl00_TopNavBar_QATR_ctl00_Tag" class="fly" href="http://www.codeproject.com/script/Answers/List.aspx?tab=active&alltags=true&tags=81" style="padding-left:30px">C# questions</a></li>
			
				<li><a id="ctl00_TopNavBar_QATR_ctl01_Tag" class="fly" href="http://www.codeproject.com/script/Answers/List.aspx?tab=active&alltags=true&tags=85" style="padding-left:30px">ASP.NET questions</a></li>
			
				<li><a id="ctl00_TopNavBar_QATR_ctl02_Tag" class="fly" href="http://www.codeproject.com/script/Answers/List.aspx?tab=active&alltags=true&tags=842" style="padding-left:30px">VB.NET questions</a></li>
			
				<li><a id="ctl00_TopNavBar_QATR_ctl03_Tag" class="fly" href="http://www.codeproject.com/script/Answers/List.aspx?tab=active&alltags=true&tags=308" style="padding-left:30px">C#4.0 questions</a></li>
			
				<li><a id="ctl00_TopNavBar_QATR_ctl04_Tag" class="fly" href="http://www.codeproject.com/script/Answers/List.aspx?tab=active&alltags=true&tags=87" style="padding-left:30px">Javascript questions</a></li>
			
		<li class="last"></li>
	</ul>

</li>



<li class=""><a id="ctl00_TopNavBar_Forums" href="http://www.codeproject.com/script/Forums/List.aspx">discussions</a>

	<ul>
		<li><a id="ctl00_TopNavBar_MessageBoardsAll" class="fly" href="http://www.codeproject.com/script/Forums/List.aspx">All Message Boards...</a></li>
		<li class=""><a class="fly" style="padding-left:30px" href="http://www.codeproject.com/Forums/1580997/Application-Lifecycle.aspx">Application Lifecycle<span class="has-submenu">&gt;</span></a>
<ul class="openable"><li><a class="fly" href="http://www.codeproject.com/Forums/1533717/Running-a-Business.aspx">Running a Business</a></li>
<li><a class="fly" href="http://www.codeproject.com/Forums/1533716/Sales-Marketing.aspx">Sales / Marketing</a></li>
<li><a class="fly" href="http://www.codeproject.com/Forums/1651/Collaboration-Beta-Testing.aspx">Collaboration / Beta Testing</a></li>
<li><a class="fly" href="http://www.codeproject.com/Forums/3304/Work-Training-Issues.aspx">Work &amp; Training Issues</a></li>
</ul></li>
<li><a class="fly" style="padding-left:30px" href="http://www.codeproject.com/Forums/369270/Design-and-Architecture.aspx">Design and Architecture</a>
</li>
<li><a class="fly" style="padding-left:30px" href="http://www.codeproject.com/Forums/12076/ASP-NET.aspx">ASP.NET</a>
</li>
<li><a class="fly" style="padding-left:30px" href="http://www.codeproject.com/Forums/1580226/JavaScript.aspx">JavaScript</a>
</li>
<li class=""><a class="fly" style="padding-left:30px" href="http://www.codeproject.com/Forums/1647/C-Cplusplus-MFC.aspx">C / C++ / MFC<span class="has-submenu">&gt;</span></a>
<ul class="openable"><li><a class="fly" href="http://www.codeproject.com/Forums/4486/ATL-WTL-STL.aspx">ATL /  WTL / STL</a></li>
<li><a class="fly" href="http://www.codeproject.com/Forums/3785/Managed-Cplusplus-CLI.aspx">Managed C++/CLI</a></li>
</ul></li>
<li><a class="fly" style="padding-left:30px" href="http://www.codeproject.com/Forums/1827459/Adobe-Technologies.aspx">Adobe Technologies</a>
</li>
<li><a class="fly" style="padding-left:30px" href="http://www.codeproject.com/Forums/1649/Csharp.aspx">C#</a>
</li>
<li><a class="fly" style="padding-left:30px" href="http://www.codeproject.com/Forums/1627782/Free-Tools.aspx">Free Tools</a>
</li>
<li><a class="fly" style="padding-left:30px" href="http://www.codeproject.com/Forums/1827460/Objective-C.aspx">Objective-C</a>
</li>
<li><a class="fly" style="padding-left:30px" href="http://www.codeproject.com/Forums/1832431/Ruby-On-Rails.aspx">Ruby On Rails</a>
</li>
<li><a class="fly" style="padding-left:30px" href="http://www.codeproject.com/Forums/1725/Database.aspx">Database</a>
</li>
<li class=""><a class="fly" style="padding-left:30px" href="http://www.codeproject.com/Forums/186301/Hardware-Devices.aspx">Hardware &amp; Devices<span class="has-submenu">&gt;</span></a>
<ul class="openable"><li><a class="fly" href="http://www.codeproject.com/Forums/1644/System-Admin.aspx">System Admin</a></li>
</ul></li>
<li><a class="fly" style="padding-left:30px" href="http://www.codeproject.com/Forums/1606152/Hosting-and-Servers.aspx">Hosting and Servers</a>
</li>
<li><a class="fly" style="padding-left:30px" href="http://www.codeproject.com/Forums/1643/Java.aspx">Java</a>
</li>
<li><a class="fly" style="padding-left:30px" href="http://www.codeproject.com/Forums/1650/NET-Framework.aspx">.NET Framework</a>
</li>
<li><a class="fly" style="padding-left:30px" href="http://www.codeproject.com/Forums/1848626/Android.aspx">Android</a>
</li>
<li><a class="fly" style="padding-left:30px" href="http://www.codeproject.com/Forums/13695/Mobile.aspx">Mobile</a>
</li>
<li><a class="fly" style="padding-left:30px" href="http://www.codeproject.com/Forums/1540733/Sharepoint.aspx">Sharepoint</a>
</li>
<li><a class="fly" style="padding-left:30px" href="http://www.codeproject.com/Forums/1004257/Silverlight-WPF.aspx">Silverlight / WPF</a>
</li>
<li><a class="fly" style="padding-left:30px" href="http://www.codeproject.com/Forums/1646/Visual-Basic.aspx">Visual Basic</a>
</li>
<li><a class="fly" style="padding-left:30px" href="http://www.codeproject.com/Forums/1640/Web-Development.aspx">Web Development</a>
</li>
<li><a class="fly" style="padding-left:30px" href="http://www.codeproject.com/suggestions.aspx">Site Bugs / Suggestions</a>
</li>

		<li class="last"></li>
	</ul>

</li>




<li class=""><a id="ctl00_TopNavBar_Features" href="http://www.codeproject.com/Feature/">features</a>

	<ul>
        
		<li><a id="ctl00_TopNavBar_CPTV" class="fly highlight1" href="http://codeproject.tv/"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/CPTV-24.png" width="24px" height="24px" alt="CP.TV" style="vertical-align:text-bottom">CodeProject.TV</a></li>
        <li><a id="ctl00_TopNavBar_DiscussCPTV" class="fly break" href="http://www.codeproject.com/Forums/1829610/CodeProject-TV.aspx">Discuss CodeProject.TV</a>
		</li><li><a id="ctl00_TopNavBar_Catalog" class="fly" href="http://www.codeproject.com/script/Catalog/List.aspx">Component &amp; Service Catalog</a></li>
		<li><a id="ctl00_TopNavBar_Comps" class="fly" href="http://www.codeproject.com/script/Awards/CurrentCompetitions.aspx?cmpTpId=1&awsac=true">Competitions</a></li>
		<li><a id="ctl00_TopNavBar_News" class="fly" href="http://www.codeproject.com/script/News/List.aspx">News</a></li>
		<li><a id="ctl00_TopNavBar_Insider" class="fly" href="http://www.codeproject.com/Feature/Insider/">The Insider Newsletter</a></li>
    	<li><a id="ctl00_TopNavBar_DailyBuild" class="fly" href="http://www.codeproject.com/Feature/DailyBuild">The Daily Build Newsletter</a></li>
		<li><a id="ctl00_TopNavBar_Newsletters" class="fly" href="http://www.codeproject.com/script/Mailouts/Archive.aspx?mtpid=1">Newsletter archive</a></li>
		<li><a id="ctl00_TopNavBar_Surveys" class="fly" href="http://www.codeproject.com/script/Surveys/List.aspx">Surveys</a></li>
		<li><a id="ctl00_TopNavBar_Showcase" class="fly" href="http://www.codeproject.com/KB/showcase/">Product Showcase</a></li>
		<li><a id="ctl00_TopNavBar_Research" class="fly" href="http://www.codeproject.com/script/ResearchLibrary/Index.aspx">Research Library</a></li>

		
		<li><a id="ctl00_TopNavBar_Stuff" class="fly" href="http://www.codeproject.com/Info/Stuff.aspx">CodeProject Stuff</a></li>
		<li class="last"></li>
	</ul>

</li>


<li class=""><a id="ctl00_TopNavBar_Lounge" href="http://www.codeproject.com/Lounge.aspx">community</a>

	<ul>
		<li><a id="ctl00_TopNavBar_InsiderLnk" class="fly" href="http://www.codeproject.com/Insider.aspx/undefined/">The Insider News</a></li>
		<li><a id="ctl00_TopNavBar_LoungeLnk" class="fly" href="http://www.codeproject.com/Lounge.aspx">The Lounge &nbsp;</a></li>
		<li><a id="ctl00_TopNavBar_WeirdWonderful" class="fly" href="http://www.codeproject.com/Feature/WeirdAndWonderful.aspx/trackback/">The Weird &amp; The Wonderful</a></li>
		<li><a id="ctl00_TopNavBar_SoapBoxLnk" class="fly" href="http://www.codeproject.com/Forums/1536756/The-Soapbox.aspx">The Soapbox</a></li>
		<li><a id="ctl00_TopNavBar_PRLnk" class="fly break" href="http://www.codeproject.com/Forums/1738007/Press-Releases.aspx">Press Releases</a></li>
		<li><a id="ctl00_TopNavBar_WhosWho" class="fly" href="http://www.codeproject.com/script/Membership/Profiles.aspx">Who's Who</a></li>
		<li><a id="ctl00_TopNavBar_MVPs" class="fly" href="http://www.codeproject.com/script/Awards/MVPWinners.aspx">Most Valuable Professionals</a></li>
		<li><a id="ctl00_TopNavBar_Companies" class="fly break" href="http://www.codeproject.com/script/Membership/Profiles.aspx?mgtid=1&mgm=True">Company Listings</a></li>

		
		<li class=""><a class="fly" href="http://www.codeproject.com/Forums/1580229/Hindi.aspx">Non-English Language
			<span class="has-submenu">&gt;</span></a>
		<ul>
		<li><a class="fly" href="http://www.codeproject.com/Forums/1580229/Hindi.aspx">General Indian Topics</a></li>
		<li><a class="fly" href="http://www.codeproject.com/Forums/1580230/Chinese.aspx">General Chinese Topics</a></li>
		</ul>
		</li><li class="last"></li>
		
	</ul>

</li>


<li class="" style="margin-left:20px"><a id="ctl00_TopNavBar_Help" href="http://www.codeproject.com/KB/FAQs/">help</a>

	<ul>
		<li><a id="ctl00_TopNavBar_HelpWhatIs" class="fly" href="http://www.codeproject.com/info/guide.aspx">What is 'CodeProject'?</a></li>
		<li><a id="ctl00_TopNavBar_HelpGeneral" class="fly break" href="http://www.codeproject.com/KB/FAQs/">General FAQ</a></li>
		<li><a id="ctl00_TopNavBar_HelpPostQuestion" class="fly break highlight1" href="http://www.codeproject.com/Questions/ask.aspx">Ask a Question</a></li>
		<li><a id="ctl00_TopNavBar_HelpBugs" class="fly" href="http://www.codeproject.com/suggestions.aspx">Bugs and Suggestions</a></li>
		<li><a id="ctl00_TopNavBar_HelpArticles" class="fly" href="http://www.codeproject.com/Forums/1641/Article-Writing.aspx">Article Help Forum</a></li>
		<li><a id="ctl00_TopNavBar_HelpSiteMap" class="fly" href="http://www.codeproject.com/script/Content/SiteMap.aspx">Site Map</a></li>
		<li><a id="ctl00_TopNavBar_HelpAdvertise" class="fly" href="http://developermedia.com/">Advertise with us</a></li>
		<li><a id="ctl00_TopNavBar_HelpJobs" class="fly" href="http://www.codeproject.com/info/Jobs/">Employment Opportunities</a></li>
		<li><a id="ctl00_TopNavBar_HelpAboutUs" class="fly" href="http://www.codeproject.com/info/about.aspx">About Us</a></li>
		<li class="last"></li>
	</ul>

</li>

</ul>

</div>
	</td><td align="right">
		

<div class="searchbar">

<form method="get" action="http://www.codeproject.com/search.aspx" name="Search" class="tight">


<table border="0" cellspacing="0" cellpadding="0" class="search"><tbody><tr><td><input tabindex="2" class="search  subdue" id="sb_tb" value="" name="q"></td><td><input type="image" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/search.gif"></td></tr></tbody></table>

<div class="hover-container">
	<div id="SearchFilter" class="search-advanced small-text align-left" style="display: none;">
	<b>Search within:<br></b>
		
		<input type="radio" id="sb_kw" name="sbo" value="kw" checked="true"><label for="sb_kw">Articles</label><br>
<input type="radio" id="sb_vkw" name="sbo" value="vkw"><label for="sb_vkw">Videos</label><br>
<input type="radio" id="sb_qa" name="sbo" value="qa"><label for="sb_qa">Quick Answers</label><br>
<input type="radio" id="sb_fm" name="sbo" value="fm"><label for="sb_fm">Messages</label><br>
<input type="radio" id="sb_ctlk" name="sbo" value="ctlk"><label for="sb_ctlk">Product Catalog</label><br>


		
		
	</div>
</div>
</form>

</div>
	</td></tr></tbody></table>
	<div class="sub-headerbar-divider"></div>
	</div>
	

	<div id="A" class="container-content-wrap fixed"> 

	<div itemscope="" itemtype="http://schema.org/Article" class="container-content"> 

		<div class="clearfix">
			<div class="float-left container-breadcrumb">
				<div><a href="http://www.codeproject.com/script/Content/SiteMap.aspx">Articles</a> » <a href="http://www.codeproject.com/Chapters/1/Desktop-Development.aspx">Desktop Development</a> » <a href="http://www.codeproject.com/KB/tabs/"><span itemprop="articleSection">Tabs &amp; Property Pages</span></a> » <a href="http://www.codeproject.com/KB/tabs/#General">General</a></div>
			</div>

			<div class="align-left float-right padded-top">
				


 
&nbsp;










			</div>

			<div class="float-right container-breadcrumb article-nav">
				
<div class="">


<a id="ctl00_PrevNext_NextLink" title="Next" href="http://www.codeproject.com/script/Articles/PrevNextLookup.aspx?aid=364272&at=1&secId=7" style="margin-left:5px">Next</a>
<img id="ctl00_PrevNext_NextImg" title="Next" rel="nofollow" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/arrow-right.png" style="border-width:0px;vertical-align:bottom;">
</div>
			</div>

			<div class="align-right float-left">
				
			</div>
		</div>

		<table class="extended container-article-parts" cellpadding="0" cellspacing="0"><tbody><tr valign="top">
		<td>

			<div id="ctl00_Nav" class="container-article-tabs">
				<div class="tabs">
					

<div class="">
	<div class="selected">Article</div><div class="unselected"><a href="http://www.codeproject.com/script/Articles/ViewDownloads.aspx?aid=364272">Browse Code</a></div><div class="unselected"><a href="http://www.codeproject.com/script/Articles/ViewTasks.aspx?aid=364272">Bugs / Suggestions</a></div><div class="unselected"><a href="http://www.codeproject.com/script/Articles/Statistics.aspx?aid=364272">Stats</a></div><div class="unselected"><a href="http://www.codeproject.com/script/Articles/ListVersions.aspx?aid=364272">Revisions (67)</a></div><div class="unselected"><a href="http://www.codeproject.com/script/Articles/ListAlternatives.aspx?aid=364272">Alternatives</a></div>
</div>	


					<!-- anchorLink used to auto-link to comments at end of article -->
					<div class="unselected"><a href="http://www.codeproject.com/MasterPages/#_comments" id="ctl00_CommentLink" class="anchorLink">Comments &amp; 
						Discussions <span id="ctl00_CmtCnt">(528)</span></a>
					</div>
				</div>

				
			</div>

		</td>
		<td>
			
			<div id="AT" class="container-article  fixed"> 
				<div class="article">

					<form name="aspnetForm" method="post" action="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/Easily Add a Ribbon into a WinForms Application (C#) - CodeProject.htm" id="aspnetForm" style="margin:0;padding:0">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="V+ZticYWGE/gWhpiVBN1fGxnRQ+DcKU5qT3pc4oPS3iONANr8Lkq8JraRNSBIo/PezfXISe8ykfQL7NxQykRzdJ1rk21cn5gyLx7Cg8QefDuBq5lAdx7sdThcLh9tCrFtNrKH53ajAJ1/l2yyJx1wGrnUxYlUnLjkWm5sefhZdMciDDWdRy2VbIqRXR3oEkxlavT+WJ3550NqZfWKGyWhbKwtJvFBeQI2odQBO4CymIKcPCboflt8JKXKZCAvzNa0wSpmESacU797G04hJfNYUsGOR9ocIxOr6T6gLKBfRJK5XMT5JtZSNCJ31e+uuKeN9N1kPgqUwHa7cfv9Z2WSSZEfMC+kukyUb+mzG1C+okW+ofsgd4TgRA3mSOSxBSem5z3UV6cE/REKNyWQFPuk5b+T4R5xODY+eRsV0hGm58IuyA2iU4gbmWo2Y++AanBSYEThXPbci54fVP7YYjWtXwR9puUtNwjXqvxeJfV9qyEEiyvqz4iYd5isaALyAfuKKxlH1nwVFk9WIa6x/hcQJy9EUhXclcv90aUCkJ+vSkQdLCmApPUpZqoY4k28FC5EmdxwOYWYDgj9bqAbBdxAdpzaQ7dh0Lso2fmEMrPOKAlD26o3xmhqxoupDaGaFc0Q1sos28meKpXS8/lB95TMHofNrMaIm4NxV/A9PuWqWg9HZsuwALmHOBfWdZHseSSu3kPQmXfaoDE2GY9yOz5BKvNJfxi+jNUpAAUG4709b3hM8P0nVgFMD1bV3PygobAgRi0a5mn1gCL8bgb+zf+MfPj//218aHtttZguj6CABX/ryA4lz6JimzK/r/8ej30ibsLLTnDb4WmphXTl4c/BweDWxnVbvHICGrYu/wn30lmFnf/xe2OupAItdVWU9N5WEHcKsXShuLmmTqZ0jZ1YmNvigSAKMFhsItyJ4sLhtOZsh15gs0yCty0AXZqqwmeKp8Ss/YybgZ2PGttme70MDwVSwWosU3U0UuK0l171/iCrQn5TZOUdffgU6c6cCZpdIaUpCYTPu1iSJ+UtvaQqd6t2GXBScnDNTlY3nHAllaWXS5fcU/euAxvtcKyTuX6UxqYIUPOXqb3o9AZt0WRAb+a/ALPcW9mRA+83oGxqrn8vmPWZFhb7f3HO79faDG2NQV5Udsg4de8DhIES8+UktZKsPhsFVbElFc4FsNREPbBPnpiC03l0mHEPJJNhrwgafrc0SkYWQ5eQxaRkCc0aFhVWcw3HlsqTFqDN+Nki0OhgpsNvZKeZgmTcMUvLcyTLLSKaoHaoce7H5ZgUQE9aaNNIdsTwl7Widlv/SKJf9Tt16L8yqDlhLcCxezuvTQ7JbDJ43p6+PsZDNC65PSfLD+Vyy2lgBwSsUC9qFjeFNWiGrdi1kE55WzfdmS7K1gdigCKT2Ory41VhsxcLgVdw1oXbLy0N//5PZYBVZGJpRr1sm0A6IV3jjUwfcT5+GTk6wCgDgmsc0byAH5RJ6OOBs8wO/qX1M0v1G5FzAJ/yjEdZKLG0PaBplj6ezCbxijxx0P/UAgRSNayNPV4L3Ro6if+Ud3x2MxY+VzpjSinUDENMCmBzVfeOjwL8PC+WzPS9bREQo2D7K3aHY7KmCSBf63sA2c1J40mpvo/PrzISMMoHWAn1469HDB+W2oXRrdpyC2Y2qXpRbsPoEI9zt4TKtG46KjoNYPL+ixl1DFSvLCOb4rPoUjsVcdOkFJ/HGI/LfcCMDEocXRm7aYHG2HBchoCmIiXUEdhlEebyjOhqyxPZnGZOUWS9rCUgLIMjey21OBJx0KyNWrpU3j49IwLpmgIXM2vxoUPoCxGktndcabIpvIr0f/TUNfxIcQZXd4nypbGDQJaW/EFvQ6x8ORzFRYvXN+5H46E/OlStU5jicofXrttFbl+EBBgurcW+CKdB5XFvp/JtOzv8JOMdSUH1ahwir4DMdUhevjeBEuoBjlVU5lf9DmpU27es2zNyp1p0rgScLMRCTtWeLEuTEKKxL7284ZrneYAzpTbZh9fAfqH0AKfs6dx/Y8ke9av1NXbqdN+m4Oxbk45od3bRxDydzuG0A6fVsvYCOTqx5vbZrnXwLhWMqec9qKrmckbZ8LXg1JEp/CowIakoYrc81c2GbLKi0ACvXqHOvyX/A6Y08WjTxsQG0e/qnDs9ev9+7i0w0I52BgA4UZ6r4WYCX3J9Kjzh5r0fYalSXG+6xtDuHYmtrDgyPvn9/VeVSq2qoBmdSMPfeYRpfYrE80Zi2aKQBuZoFBHF+eAbmyFlX2XQwzwDxjllMhP1hvCeT1oHvVXYiaOFuSH7/w+tRF25eYUo1r2z530Qoq/QGo/BTkrw2ErmMVdTQnKLP3nM8QFW7Wvui+NbK4yOVc8XjjfgjY80BGpdHkC/j4X0DxbKRwDKdYMiHm2iiD4Nd74A/ciqPDY55YgQ7OLeILgJMkbyDGQ3MmP3QTf7+cCoWQrwIinJ07X23g1/WOkAqfaKIlCszsql1W7l4kBHQOrb2vRI3BI2ouY+bc9A7mCSlU2OyAnNAG2z/NqJB7ZvsRclvXjz1Cy6t5es1XYfuFBjluWZISZTuI4PsN4AyQQ0DK4pquVRYOf1WgJksfgWneqPupI+1pd9U9Fuq5KlASIQF35Nc0kaP27Ec8/r2S/O46bF5TduLVt8DEjtIrSJoeMrTvQPIM0AEZAq7Qno05yhdVfoka8sAzTaPemAu3cHV378fVaJaup+7XGJ+/nGWWv8yAJPpxoupP5c8LtTUInnkd9o61h1XEE5ztlaa6r6fSiDLq+V55BBjUOKymhA4ZNjWd3fmg4b+h+PetkHLMUd+StYAoBJCDjKrXMB7aH+5UEZ3woSPozsH+93GPU+9HwORM6fXpjgPEQv/dBqy39i+JGCxeF+w3/caAd4l4kEReVTKqUvHIqurwQBQUmMdbMZ4fCSetU4beIU2FmHDD/oKZ/R8VDyWpV4lIbSt/YLwWjflsTULOd0buR64fbB7f9hJ4PpwFV2IpbMj8ORNF79UPZark1eqWLZtNMITK/npkfKF8D41e+t1enlvyYVLMGyeLxgNl1g6odE/AELFkca/06Waha3W+rC6icRGeFnlSNaXBI8IOGV+Gi8+DYcttF5lbIAOhXh/iqdGYlJCgcaGJQ4hOrlPT8hpuGkz0qbllrOb/M0BgSzQQ0FrGwDUK1qT7L9Bv08HJ9nodhknpEJZ1YjMXZNzK5hQzjFdiy7Pr0dcp0+sBiVx9lcp+YKgP3D+7d86hpz5aJaXQQ4DHoUjMrKc7EZiMXp5Vnif0l0yMOI6KtizUQDcSq2WazbqaJTxAdOHtarReGrSrB91zju3yMXqK/4J4DT+w1zXs1SEnhsoFGXvjHVnMC8Ulp7Yh2ZqCYj6YdY4G6XETL3fS5YAbxtlm6ey7XlDISJlmKQFBvW2RJXWSrRedxG5K3eJxsphYWz0a74AdFuzkelxxI+g0R7CvpQQIQjRA=">
</div>


					
					 
					<div class="header">

					<a name="Main"></a>

					
					<a name="_articleTop" id="_articleTop"></a>
					<div class="title">
					
					
					<h1 id="ctl00_ArticleTitle" itemprop="name">Easily Add a Ribbon into a WinForms Application (C#)</h1> 
					</div>

					
					<div class="entry">
						By <span class="author"><a href="http://www.codeproject.com/script/Membership/View.aspx?mid=231420" rel="author"><span itemprop="author" itemscope="" itemtype="http://schema.org/Person"><span itemprop="name">Member 231420</span></span></a>, <a href="http://www.codeproject.com/script/Membership/View.aspx?mid=2940220" rel="author"><span itemprop="author" itemscope="" itemtype="http://schema.org/Person"><span itemprop="name">toATwork</span></span></a>, <a href="http://www.codeproject.com/script/Membership/View.aspx?mid=7592043" rel="author"><span itemprop="author" itemscope="" itemtype="http://schema.org/Person"><span itemprop="name">adriancs</span></span></a>, <a href="http://www.codeproject.com/script/Membership/View.aspx?mid=9862983" rel="author"><span itemprop="author" itemscope="" itemtype="http://schema.org/Person"><span itemprop="name">Michael Spradlin</span></span></a></span>, 
						<span class="date" itemprop="dateModified" content="2013-11-23 07:08:00">
							23 Nov 2013</span>
			
									
					</div>

					
					<table class="voting-bar"><tbody><tr><td nowrap="nowrap">
						<div id="ctl00_CurRat" class="tooltip anchorLink" style="cursor:pointer" name="CurRat_364272">
				
							

<table cellpadding="0" cellspacing="0" class="small-text" itemprop="aggregateRating" itemscope="" itemtype="http://schema.org/AggregateRating"> 
<tbody><tr>
	
	<td class="nowrap">

		
			<meta itemprop="bestRating" content="5"> 
			<meta itemprop="worstRating" content="1">
		

		<span id="ctl00_ArticleRating_VI">
		<div class="nowrap rating-stars-large" style="height:19px;width:119px;position:relative;">
	<div class="clipped align-left float-left" style="height:19px;width:116px;">
		<img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/stars-fill-lg.png" style="border-width:0px;">
	</div><div class="clipped" style="height:19px;width:3px;position:relative;">
		<img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/stars-empty-lg.png" style="border-width:0px;position:absolute;top:0;right:0;">
	</div>
</div>
		</span>

		
	</td>
	
	<td id="ctl00_ArticleRating_VR" class="nowrap">
		&nbsp;
		<span id="ctl00_ArticleRating_VotesR">&nbsp;<span itemprop="ratingValue" class="rating">4.87</span> (<span itemprop="ratingCount" class="count">165</span> votes)</span>
		
	</td>

</tr>

</tbody></table>


							<div id="ctl00_RB" class="speech-bubble-container-up">
								<div class="speech-bubble-up" style="width:150px !important">
									            
<div>
<table class="feature" width="100%" height="50px" title="Voting Distribution. Recent data only" cellpadding="0" cellspacing="0"><tbody><tr class="chart-row"><td class="chart-column rating-ignore-vote" title="Outside deviation limits - not included in score."><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pollcol.gif" width="20pxpx" height="1px" border="0px" alt="1 vote, 0.6%" title="1 vote, 0.6%"><br><span title="1 vote">1</span></td>
<td class="chart-column rating-ignore-vote" title="Outside deviation limits - not included in score."><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t(1).gif" width="20pxpx" height="1px" border="0px" alt="" title=""><br><span title="0 votes">2</span></td>
<td class="chart-column rating-ignore-vote" title="Outside deviation limits - not included in score."><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pollcol.gif" width="20pxpx" height="1px" border="0px" alt="1 vote, 0.6%" title="1 vote, 0.6%"><br><span title="1 vote">3</span></td>
<td class="chart-column"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pollcol.gif" width="20pxpx" height="5px" border="0px" alt="16 votes, 9.7%" title="16 votes, 9.7%"><br><span title="16 votes">4</span></td>
<td class="chart-column"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pollcol.gif" width="20pxpx" height="50px" border="0px" alt="147 votes, 89.1%" title="147 votes, 89.1%"><br><span title="147 votes">5</span></td>
</tr></tbody></table><div class="small-text align-center">4.87/5 - 165 votes</div><div class="small-text align-center subdue">2 removed</div><div class="small-text align-center subdue">μ 4.85, σ<sub>a</sub> 0.95 [<a href="http://www.codeproject.com/KB/FAQs/RatingReputationFAQ.aspx#noisefilter">?</a>]</div>
</div>
								</div>
								<div class="speech-bubble-pointer-up">
									<div class="speech-bubble-pointer-up-inner"></div>
								</div>
							</div>
						</div>
					</td>
					<td nowrap="">
						
					</td>
					<td id="ctl00_RateArticleRow" class="voting-bar">
							
							<div class="float-right align-right">
								<div id="ctl00_RateArticle_RateItemWrapper" class="small-text" name="RateItem_364272">

	<table width="100%" cellpadding="0" cellspacing="0" class="small-text">
	<tbody><tr>
		<td id="ctl00_RateArticle_VoteResultDiv" class="rating-result align-right">
			<span class="align-right"></span>
			<img class="loaderImg" width="16px" alt="loading..." height="16px" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/animated_loading_blue.gif" style="display:none;"> 
		</td>

	
		<td class="voteTbl" style="white-space:nowrap" align="right">
			<table class="small-text">
			<tbody><tr>
				<td id="ctl00_RateArticle_RateText" class="rating-prompt">
					Rate this:
				</td>

				
				<td id="ctl00_RateArticle_VoteFormDiv" class="nowrap rating-stars-voter-large">
					

					<span id="ctl00_RateArticle_RB" class="tooltip ajaxHist radio voting">
						<span id="ctl00_RateArticle_VoteRBL"><input id="ctl00_RateArticle_VoteRBL_0" type="radio" name="ctl00$RateArticle$VoteRBL" value="1" style="display: none;"><input id="ctl00_RateArticle_VoteRBL_1" type="radio" name="ctl00$RateArticle$VoteRBL" value="2" style="display: none;"><input id="ctl00_RateArticle_VoteRBL_2" type="radio" name="ctl00$RateArticle$VoteRBL" value="3" style="display: none;"><input id="ctl00_RateArticle_VoteRBL_3" type="radio" name="ctl00$RateArticle$VoteRBL" value="4" style="display: none;"><input id="ctl00_RateArticle_VoteRBL_4" type="radio" name="ctl00$RateArticle$VoteRBL" value="5" style="display: none;"></span> 

						
					<div class="rating-star-block"><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" rating="1" class="star outline" title="vote 1">vote 1</a><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" rating="2" class="star outline" title="vote 2">vote 2</a><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" rating="3" class="star outline" title="vote 3">vote 3</a><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" rating="4" class="star outline" title="vote 4">vote 4</a><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" rating="5" class="star outline" title="vote 5">vote 5</a></div></span>

				</td>

				
				<td style="padding-left:5px">	
					<input type="submit" name="ctl00$RateArticle$SubmitRateBtn" value="Vote!" id="ctl00_RateArticle_SubmitRateBtn" class="button" style="display: none;">
				</td>
			</tr>
			</tbody></table>
			
		</td>
	</tr>
	</tbody></table>
	<div class="hover-container">
		
        <div id="ctl00_RateArticle_RSU" class="rating-comment align-left float-right">
            <div class="padded">
            Please <a id="ctl00_RateArticle_SignUp" href="https://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs">Sign up or sign in</a> to vote.
            </div>
        </div>
	</div>
</div>
							</div>
                            <div class="float-right">
                                <a href="https://workspaces.codeproject.com/thomas-oberndorfer/easily-add-a-ribbon-into-a-winforms-application-cs" id="ctl00_GitLink">
                                <img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/ForkMeLocal.png" alt="Form me!" width="226px" height="24px" style="margin:4px 15px 0 0; border:0"></a>
							</div> 
												
					</td>

					</tr></tbody></table>

					</div>
					
					

					
					

					
					
					

						
					

					

						
						<div id="contentdiv" class="text" itemprop="articleBody">
						



<ul class="download">
<li><a href="https://officeribbon.codeplex.com/releases/">Download Ribbon (07.Oct.2013)</a> </li>
</ul>

<p><strong>Style 2007&nbsp;</strong>&nbsp;</p><p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/12.png" width="331" height="295"></p><p><strong>Style 2010&nbsp;</strong></p><p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/ribbon2010style.png" width="455" height="274"></p><p><strong>Style 2013&nbsp;</strong></p><p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/ribbon2013style.png" width="431" height="272"></p>

<p>Content</p>

<ul>
<li>Part 1: Background&nbsp; </li>

<li><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#anPart2">Part 2: How to Use this Ribbon Control</a>&nbsp; </li>

<li><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#anPart3">Part 3: Cautious While Using with Visual Studio 2010</a> </li>

<li><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#anPart4">Part 4: Using this Ribbon with MDI Enabled WinForm</a> (<em>Update</em>) </li>

<li><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#Part5">Part 5: Alternative Ribbon</a></li>

<li><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#Part6">Part 6:&nbsp;How to Make a New Theme, Skin for this Ribbon Programmatically</a></li>

<li><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#part7">Part 7: Known Issues </a></li>

<li><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#log">Article Change Log</a>&nbsp; </li>
</ul>
<hr>
<h2>Part 1: Background&nbsp;</h2>

<p>The ribbon that is going to be used in this article is an open source project created by <strong>Jose Menendez Poo</strong>. However, the original author of the ribbon has stopped support of it. A group of fans of this ribbon re-host and continue to develop/enhance and support the ribbon.&nbsp;</p>

<p>The original ribbon creator has posted an article explaining what this ribbon is all about at here: [<a href="http://www.codeproject.com/Articles/25907/A-Professional-Ribbon-You-Will-Use-Now-with-orb">A Professional Ribbon You Will Use (Now with orb!)</a>]. However, that article doesn't describe how to use it in your project. Therefore, this article will show how to use it.</p>

<p>Old Site: <a href="http://ribbon.codeplex.com/">http://ribbon.codeplex.com</a> (By original author, but has stopped support)&nbsp;</p>

<p>New Site: <a href="http://officeribbon.codeplex.com/">http://officeribbon.codeplex.com</a> (Re-host by fans of the ribbon) &nbsp;</p>

<p>
</p><hr>
<h2>Part 2: How to Use this Ribbon Control &nbsp;&nbsp;&nbsp;</h2>

<p>Reminder: Please note that this ribbon does not work on <strong>.Net 3.5 Client Profile</strong> and <strong>.NET 4.0 Client Profile</strong>.&nbsp;You have to switch the target framework to<strong> .NET 3.5</strong> or<strong> .NET 4.0</strong>. When you first create a project, Visual Studio might initially set the target framework to <strong>Client Profile</strong>.&nbsp;&nbsp;</p><p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/dotnet4.png" width="511" height="326">&nbsp;</p><p>If the project is using <strong>Client Profile</strong>, you might receive this error while you are trying to build the solution:</p><div class="pre-action-link" id="premain0" width="100%" style="display:block"><img id="preimg0" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/minus.gif" height="9" width="9" preid="0" style="cursor: pointer;"><span id="precollapse0" preid="0" style="cursor: pointer; margin-bottom: 0px;"> Collapse</span><span> | </span><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" preid="0">Copy Code</a></div><pre lang="text" id="pre0" style="margin-top: 0px;">Error 3 The type or namespace name 'Ribbon' does not exist in the namespace 'System.Windows.Forms' (are you missing an assembly reference?) </pre>

<p>&nbsp;</p><p>1. Get <em><strong>System.Windows.Forms.Ribbon35.dll</strong> </em>from download.</p>

<p>2.&nbsp;Create a blank WinForms project.</p>

<p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/01.png" width="719" height="540"></p>

<p>3. Add Ribbon into Visual Studio Toolbox. </p>

<p>Right Click on Toolbox &gt; Add Tab.</p>

<p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/addribbon01.png" width="416" height="362"></p>

<p>Give the new tab a name "Ribbon".</p>

<p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/addribbon02.png" width="201" height="358"></p>

<p>Right Click on the New Tab [Ribbon] &gt; Choose Items...</p>

<p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/addribbon03.png" width="396" height="316"></p>

<p>[Browse...] Where are you? System.Windows.Forms.Ribbon35.dl?</p>

<p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/addribbon04.png" width="274" height="174"></p>

<p>There you are... Gotcha... Select it...</p>

<p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/addribbon05.png" width="618" height="447"></p>

<p>Only [Ribbon] can be dragged into Form. Others, as the picture below said, they are not needed to exist in toolbox. However, its not going to harm your computer or project if you select all the items belongs to ribbon (by default). Its up to you.</p>

<p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/addribbon06.png" width="667" height="476"></p>

<p>And finally, what you're going to do is just...</p>

<p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/addribbon07.png" width="667" height="403"></p>

<p><span style="text-decoration: underline;"><strong>Another Way</strong></span></p>

<p><strong>Manually code it behind.</strong></p>

<p>You can add the ribbon into WinForm too with code behind.</p>

<p>Add a reference of &nbsp;<em>System.Windows.Forms.Ribbon35.dll</em> into your project. Build the the solution. &nbsp;</p>

<p>

</p><p>Open the designer of Main Form. In this example, <em>Form1.Designer.cs</em>.</p>

<p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/04.png" width="332" height="230"></p>

<p>Add these three lines of code&nbsp;</p>

<div class="pre-action-link" id="premain1" width="100%" style="display:block"><img id="preimg1" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/minus.gif" height="9" width="9" preid="1" style="cursor: pointer;"><span id="precollapse1" preid="1" style="cursor: pointer; margin-bottom: 0px;"> Collapse</span><span> | </span><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" preid="1">Copy Code</a></div><pre id="pre1" style="margin-top: 0px;"><span class="code-keyword">private</span> System.Windows.Forms.Ribbon ribbon1;
ribbon1 = <span class="code-keyword">new</span> System.Windows.Forms.Ribbon();
<span class="code-keyword">this</span>.Controls.Add(ribbon1); </pre>

<p>into <code><strong>Form1.Designer.cs</strong>&nbsp;</code> </p>

<div class="pre-action-link" id="premain2" width="100%" style="display:block"><img id="preimg2" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/minus.gif" height="9" width="9" preid="2" style="cursor: pointer;"><span id="precollapse2" preid="2" style="cursor: pointer; margin-bottom: 0px;"> Collapse</span><span> | </span><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" preid="2">Copy Code</a></div><pre lang="cs" id="pre2" style="margin-top: 0px;"><span class="code-keyword">private</span> <span class="code-keyword">void</span> InitializeComponent()
{
    ribbon1 = <span class="code-keyword">new</span> System.Windows.Forms.Ribbon();
    <span class="code-keyword">this</span>.components = <span class="code-keyword">new</span> System.ComponentModel.Container();
    <span class="code-keyword">this</span>.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
    <span class="code-keyword">this</span>.Text = <span class="code-string">"</span><span class="code-string">Form1"</span>;
    <span class="code-keyword">this</span>.Controls.Add(ribbon1);
}
<span class="code-keyword">private</span> System.Windows.Forms.Ribbon ribbon1; </pre>

<p>

</p><p>Save and Close <em><code><strong>Form1.Designer.cs</strong></code></em>.&nbsp;&nbsp;</p>

<p>Double click and open <em><code><strong>Form1.cs</strong></code></em>, and now the Ribbon control is added into the main form.</p>

<p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/06.png" width="333" height="218"></p>

<p>&nbsp;</p>

<p><strong>Lets continue...</strong>&nbsp;</p>

<p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/07.png" width="307" height="307"></p>

<p><span style="font-weight: normal;">4. Click on the Ribbon and click Add Tab.&nbsp;</span>&nbsp;</p>

<p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/08.png" width="677" height="367"></p>

<p>5. Click on the newly added <code><strong>RibbonTab</strong></code>, then click <strong><code><strong>Add Panel</strong></code></strong>.</p>

<p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/09.png" width="300" height="300"></p>

<p>6. Click on the newly added <code><strong>RibbonPanel</strong></code>, go to <strong>Properties</strong>. You will see a set of available controls that can be added to the <code><strong>RibbonPanel</strong></code>.</p>

<p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/10.png" width="615" height="368"></p>

<p>You might not able to see the extra command links of "<strong>Add Button</strong>", "<strong>Add ButtonList</strong>", "<strong>Add ItemGroup</strong>"... etc at the Properties Explorer. &nbsp;</p>

<p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/noc1.png" width="624" height="368">&nbsp;</p>

<p>Right click at the Properties Explorer and Tick/Check the [<code><strong>Commands</strong></code>].&nbsp;&nbsp;</p>

<p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/noc2.png" width="624" height="368">&nbsp;</p>

<p>&nbsp;</p>

<p>7. Try to add some buttons into the <code><strong>RibbonPanel</strong></code>.</p>

<p>8. Click on the <code><strong>RibbonButton</strong></code>, go&nbsp;to <strong>Properties</strong>.&nbsp;</p>

<p>9. Let's try to change the image and the label text of the button.</p>

<p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/13.png" width="645" height="376"></p>

<p>10. This is how your ribbon looks like now.</p>

<p>11. Now, create the click event for the buttons. Click on <code><strong>RibbonButton</strong></code>, go to <strong>Properties</strong>, modify the <strong><code>Name</code> </strong>of the button.</p>

<p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/11.png" width="638" height="351"></p>

<p>12. Click on the RibbonButton, go to properties &gt; Click on Events &gt; Double Click on event of <code><strong>Click</strong></code></p>

<p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/rt.png" width="637" height="413">&nbsp;</p>

<p>13. Events created.</p>

<div class="pre-action-link" id="premain3" width="100%" style="display:block"><img id="preimg3" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/minus.gif" height="9" width="9" preid="3" style="cursor: pointer;"><span id="precollapse3" preid="3" style="cursor: pointer; margin-bottom: 0px;"> Collapse</span><span> | </span><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" preid="3">Copy Code</a></div><pre lang="cs" id="pre3" style="margin-top: 0px;"><span class="code-keyword">public</span> Form1()
{
    InitializeComponent();
}

<span class="code-keyword">void</span> cmdNew_Click(<span class="code-keyword">object</span> sender, EventArgs e)
{
    MessageBox.Show(<span class="code-string">"</span><span class="code-string">Button \"New\" Clicked."</span>);
}

<span class="code-keyword">void</span> cmdSave_Click(<span class="code-keyword">object</span> sender, EventArgs e)
{
    MessageBox.Show(<span class="code-string">"</span><span class="code-string">Button \"Save\" Clicked."</span>);
}</pre>

<p>14. Press F5 to run the application. Done.</p>

<p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/12.png" width="331" height="295"></p>

<p>15. You might want to inherit your Main Form into a <code>RibbonForm</code> to have extra features. Such as:</p>

<p><strike><em>Note: Inherit the Main Form to <code>RibbonForm</code> will have some compatibility problems with some of the <code>System.Windows.Forms</code> controls. (especially&nbsp;MDI Client Control)</em>&nbsp;</strike>&nbsp;&nbsp;<em>This problem is solved in released version <strong>10 May 2013</strong>.</em>&nbsp;</p>

<p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/14.png" width="707" height="314"></p>

<p>16. In the code for <em><code><strong>Form1.cs</strong></code></em>, change inheritance of Form this line:</p>

<div class="pre-action-link" id="premain4" width="100%" style="display:block"><img id="preimg4" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/minus.gif" height="9" width="9" preid="4" style="cursor: pointer;"><span id="precollapse4" preid="4" style="cursor: pointer; margin-bottom: 0px;"> Collapse</span><span> | </span><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" preid="4">Copy Code</a></div><pre lang="cs" id="pre4" style="margin-top: 0px;"><span class="code-keyword">public</span> <span class="code-keyword">partial</span> <span class="code-keyword">class</span> Form1 : Form</pre>

<p>to <code><strong>RibbonForm&nbsp;</strong></code></p>

<div class="pre-action-link" id="premain5" width="100%" style="display:block"><img id="preimg5" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/minus.gif" height="9" width="9" preid="5" style="cursor: pointer;"><span id="precollapse5" preid="5" style="cursor: pointer; margin-bottom: 0px;"> Collapse</span><span> | </span><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" preid="5">Copy Code</a></div><pre lang="cs" id="pre5" style="margin-top: 0px;"><span class="code-keyword">public</span> <span class="code-keyword">partial</span> <span class="code-keyword">class</span> Form1 : RibbonForm</pre>

<p>
</p><hr>
<h2><a id="anPart3" title="anPart3" class="anchor" name="anPart3"></a>Part 3: Caution While Using With Visual Studio 2010&nbsp;</h2>

<p>... deleted .... &nbsp;</p>
<hr>
<h2><a id="anPart4" title="anPart4" class="anchor" name="anPart4"></a>Part 4: Using this Ribbon with an MDI Enabled WinForm&nbsp;</h2>

<p>


</p><p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/mdi00.png" width="369" height="291">&nbsp;</p><p>The following guide will show how to apply this ribbon with an MDI (Multi Document Interface) enabled WinForm.&nbsp;</p><p><em>Note: In previous version of Ribbon, inheritance of RibbonForm is not supported well with MDI Enabled WinForm. This problem is solved in released version of <strong>10 May 2013</strong>.&nbsp;</em></p><h3>Start&nbsp;&nbsp;</h3><p>1. &nbsp;Lets design a ribbon winform something like this as example. In the properties window, set <code>IsMdiContainer</code> to <code>True</code>.&nbsp;</p><p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/mdi01.png" width="622" height="386">&nbsp;</p><p>2. Create another simple another form that will be loaded into the MDI Container of <code>MainForm</code>.&nbsp;</p><p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/mdi02.png" width="335" height="206"></p><p>3. At code behind of <code>Form1</code>, add in the below codes:</p><p>
</p><div class="pre-action-link" id="premain6" width="100%" style="display:block"><img id="preimg6" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/minus.gif" height="9" width="9" preid="6" style="cursor: pointer;"><span id="precollapse6" preid="6" style="cursor: pointer; margin-bottom: 0px;"> Collapse</span><span> | </span><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" preid="6">Copy Code</a></div><pre lang="cs" id="pre6" style="margin-top: 0px;"><span class="code-keyword">public</span> <span class="code-keyword">partial</span> <span class="code-keyword">class</span> Form1 : Form
{
    <span class="code-keyword">public</span> Form1()
    {
        InitializeComponent();
    }

    <span class="code-keyword">protected</span> <span class="code-keyword">override</span> <span class="code-keyword">void</span> OnLoad(EventArgs e)
    {
        <span class="code-keyword">base</span>.OnLoad(e);
        <span class="code-keyword">this</span>.ControlBox = <span class="code-keyword">false</span>;
        <span class="code-keyword">this</span>.WindowState = FormWindowState.Maximized;
        <span class="code-keyword">this</span>.BringToFront();
    }
}  </pre><p>4. At code behind of <code>MainForm</code>, create the click events for <code>RibbonButton</code> at <code>MainForm</code>:</p><p><em>Note: In previous version of Ribbon, inheritance of RibbonForm is not supported well with MDI Enabled WinForm. This problem is solved in released version of 10 May 2013.</em>&nbsp;</p><div class="pre-action-link" id="premain7" width="100%" style="display:block"><img id="preimg7" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/minus.gif" height="9" width="9" preid="7" style="cursor: pointer;"><span id="precollapse7" preid="7" style="cursor: pointer; margin-bottom: 0px;"> Collapse</span><span> | </span><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" preid="7">Copy Code</a></div><pre lang="cs" id="pre7" style="margin-top: 0px;"><span class="code-keyword">public</span> <span class="code-keyword">partial</span> <span class="code-keyword">class</span> MainForm : RibbonForm
{
    <span class="code-keyword">public</span> MainForm()
    {
        InitializeComponent();
    }

    <span class="code-keyword">private</span> <span class="code-keyword">void</span> ribbonButton_Form1_Click(<span class="code-keyword">object</span> sender, EventArgs e)
    {
        <span class="code-comment">//</span><span class="code-comment"> Load Form1
</span>    }

    <span class="code-keyword">private</span> <span class="code-keyword">void</span> ribbonButton_Close_Click(<span class="code-keyword">object</span> sender, EventArgs e)
    {
        <span class="code-comment">//</span><span class="code-comment"> Close All Forms
</span>    }
}  </pre>

<p>5. Codes for loading Form1 into MDI:</p><p>
</p><div class="pre-action-link" id="premain8" width="100%" style="display:block"><img id="preimg8" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/minus.gif" height="9" width="9" preid="8" style="cursor: pointer;"><span id="precollapse8" preid="8" style="cursor: pointer; margin-bottom: 0px;"> Collapse</span><span> | </span><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" preid="8">Copy Code</a></div><pre lang="cs" id="pre8" style="margin-top: 0px;"><span class="code-keyword">private</span> <span class="code-keyword">void</span> ribbonButton_Form1_Click(<span class="code-keyword">object</span> sender, EventArgs e)
{
    <span class="code-keyword">foreach</span> (Form f <span class="code-keyword">in</span> <span class="code-keyword">this</span>.MdiChildren)
    {
        <span class="code-keyword">if</span> (f.GetType() == <span class="code-keyword">typeof</span>(Form1))
        {
            f.Activate();
            <span class="code-keyword">return</span>;
        }
    }
    Form form1 = <span class="code-keyword">new</span> Form1();
    form1.MdiParent = <span class="code-keyword">this</span>;
    form1.Show();
} </pre><p>
</p><p>6. Codes for closing all opened form in MDI:</p><p>
</p><div class="pre-action-link" id="premain9" width="100%" style="display:block"><img id="preimg9" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/minus.gif" height="9" width="9" preid="9" style="cursor: pointer;"><span id="precollapse9" preid="9" style="cursor: pointer; margin-bottom: 0px;"> Collapse</span><span> | </span><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" preid="9">Copy Code</a></div><pre lang="cs" id="pre9" style="margin-top: 0px;"><span class="code-keyword">private</span> <span class="code-keyword">void</span> ribbonButton_Close_Click(<span class="code-keyword">object</span> sender, EventArgs e)
{
    <span class="code-keyword">while</span> (<span class="code-keyword">this</span>.ActiveMdiChild != <span class="code-keyword">null</span>)
    {
        <span class="code-keyword">this</span>.ActiveMdiChild.Close();
    }
} </pre><p>
</p><p>7. That's it. Enjoy.&nbsp;</p><p>

</p><hr>
<h2><a id="Part5" title="Part5" class="anchor" name="Part5"></a>Part 5: Alternative Ribbon&nbsp;&nbsp;</h2>

<p>You may also want to have a look at:&nbsp;&nbsp;</p>

<ul>
<li><a href="http://www.codeproject.com/Articles/55599/Windows-Ribbon-for-WinForms-Part-0-Table-of-Conten">Windows Ribbon for WinForms</a>&nbsp;</li><li><a href="http://www.qiosdevsuite.com/controls/qribbon/">QRibbon - developed by&nbsp;&nbsp;http://www.qiosdevsuite.com/</a></li>
</ul>
<hr>
<h2><a id="Part6" title="Part6" class="anchor" name="Part6"></a>Part 6: How to Make a New Theme, Skin for this Ribbon Programmatically&nbsp;</h2>

<p><em>Default Theme</em></p>

<p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t3.png" width="562" height="314"></p>

<p><em>Example color theme of <strong>RibbonProfesionalRendererColorTableBlack.cs</strong> (ready made by ribbon author).</em></p>

<p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t2.png" width="567" height="312"></p>

<p><em>Another custom theme</em></p>

<p><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t4.png" width="560" height="301">&nbsp;</p>
Note: A Theme Builder is included in the Demo App, you can obtain it at Download. You can Build new Theme easily with Theme Builder. In new released, Ribbon (13 Jan 2013), Ribbon can write and read a theme file. Read more:&nbsp;<a style="font-size: 13px; font-family: &#39;Segoe UI&#39;, Tahoma, Arial, Helvetica, sans-serif; vertical-align: baseline; color: rgb(46, 139, 204); outline: invert none 0px; line-height: 19px;" href="http://officeribbon.codeplex.com/wikipage?title=How%20to%20Create%20and%20Load%20Theme%20File"><em>How to Create and Load Theme File.</em>&nbsp;</a><br>
<ol>
<li>To make your own color theme, create another <strong>class</strong> and <strong>inherit </strong><em>RibbonProfesionalRendererColorTable.</em>&nbsp; </li>

<li>Change all the color objects into your desired colors.&nbsp; </li>

<li>Example: (the first five colors have been filled for your reference). 
<p>In this example, we'll name the new theme <code>MyCoolThemeSkin</code>.</p>

<div class="pre-action-link" id="premain10" width="100%" style="display:block"><img id="preimg10" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/minus.gif" height="9" width="9" preid="10" style="cursor: pointer;"><span id="precollapse10" preid="10" style="cursor: pointer; margin-bottom: 0px;"> Collapse</span><span> | </span><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" preid="10">Copy Code</a></div><pre lang="cs" id="pre10" style="margin-top: 0px;"><span class="code-keyword">using</span> System;
<span class="code-keyword">using</span> System.Collections.Generic;
<span class="code-keyword">using</span> System.Text;
<span class="code-keyword">using</span> System.Drawing;

<span class="code-keyword">namespace</span> System.Windows.Forms
{
    <span class="code-keyword">public</span> <span class="code-keyword">class</span> MyCoolThemeSkin
        : RibbonProfesionalRendererColorTable
    {
        <span class="code-keyword">public</span> MyCoolThemeSkin()
        {
            <span class="code-preprocessor">#region</span> Fields

            OrbDropDownDarkBorder = Color.Yellow;
            OrbDropDownLightBorder = Color.FromKnownColor(KnownColor.WindowFrame);
            OrbDropDownBack = Color.FromName(<span class="code-string">"</span><span class="code-string">Red"</span>);
            OrbDropDownNorthA = FromHex(<span class="code-string">"</span><span class="code-string">#C2FF3D"</span>);
            OrbDropDownNorthB = Color.FromArgb(<span class="code-digit">201</span>, <span class="code-digit">100</span>, <span class="code-digit">150</span>);
            OrbDropDownNorthC = 
            OrbDropDownNorthD = 
            OrbDropDownSouthC = 
            OrbDropDownSouthD = 
            OrbDropDownContentbg = 
            OrbDropDownContentbglight = 
            OrbDropDownSeparatorlight = 
            OrbDropDownSeparatordark = 

            Caption1 = 
            Caption2 = 
            Caption3 = 
            Caption4 = 
            Caption5 = 
            Caption6 = 
            Caption7 = 

            QuickAccessBorderDark = 
            QuickAccessBorderLight = 
            QuickAccessUpper = 
            QuickAccessLower = 

            OrbOptionBorder = 
            OrbOptionBackground = 
            OrbOptionShine = 

            Arrow = 
            ArrowLight = 
            ArrowDisabled = 
            Text = 

            RibbonBackground = 
            TabBorder = 
            TabNorth = 
            TabSouth = 
            TabGlow = 
            TabText = 
            TabActiveText = 
            TabContentNorth = 
            TabContentSouth = 
            TabSelectedGlow = 
            PanelDarkBorder = 
            PanelLightBorder = 
            PanelTextBackground = 
            PanelTextBackgroundSelected = 
            PanelText = 
            PanelBackgroundSelected = 
            PanelOverflowBackground = 
            PanelOverflowBackgroundPressed = 
            PanelOverflowBackgroundSelectedNorth = 
            PanelOverflowBackgroundSelectedSouth = 

            ButtonBgOut = 
            ButtonBgCenter = 
            ButtonBorderOut = 
            ButtonBorderIn = 
            ButtonGlossyNorth = 
            ButtonGlossySouth = 

            ButtonDisabledBgOut = 
            ButtonDisabledBgCenter = 
            ButtonDisabledBorderOut = 
            ButtonDisabledBorderIn = 
            ButtonDisabledGlossyNorth = 
            ButtonDisabledGlossySouth = 

            ButtonSelectedBgOut = 
            ButtonSelectedBgCenter = 
            ButtonSelectedBorderOut = 
            ButtonSelectedBorderIn = 
            ButtonSelectedGlossyNorth = 
            ButtonSelectedGlossySouth = 

            ButtonPressedBgOut = 
            ButtonPressedBgCenter = 
            ButtonPressedBorderOut = 
            ButtonPressedBorderIn = 
            ButtonPressedGlossyNorth = 
            ButtonPressedGlossySouth = 

            ButtonCheckedBgOut = 
            ButtonCheckedBgCenter = 
            ButtonCheckedBorderOut = 
            ButtonCheckedBorderIn = 
            ButtonCheckedGlossyNorth = 
            ButtonCheckedGlossySouth = 

            ItemGroupOuterBorder = 
            ItemGroupInnerBorder = 
            ItemGroupSeparatorLight = 
            ItemGroupSeparatorDark = 
            ItemGroupBgNorth = 
            ItemGroupBgSouth = 
            ItemGroupBgGlossy = 

            ButtonListBorder = 
            ButtonListBg = 
            ButtonListBgSelected = 

            DropDownBg = 
            DropDownImageBg = 
            DropDownImageSeparator = 
            DropDownBorder = 
            DropDownGripNorth = 
            DropDownGripSouth = 
            DropDownGripBorder = 
            DropDownGripDark = 
            DropDownGripLight = 

            SeparatorLight = 
            SeparatorDark = 
            SeparatorBg = 
            SeparatorLine = 

            TextBoxUnselectedBg = 
            TextBoxBorder = 

            <span class="code-preprocessor">#endregion</span>
        }     

        <span class="code-keyword">public</span> Color FromHex(<span class="code-keyword">string</span> hex)
        {
            <span class="code-keyword">if</span> (hex.StartsWith(<span class="code-string">"</span><span class="code-string">#"</span>))
                hex = hex.Substring(<span class="code-digit">1</span>);

            <span class="code-keyword">if</span> (hex.Length != <span class="code-digit">6</span>) <span class="code-keyword">throw</span> <span class="code-keyword">new</span> Exception(<span class="code-string">"</span><span class="code-string">Color not valid"</span>);

            <span class="code-keyword">return</span> Color.FromArgb(
                <span class="code-keyword">int</span>.Parse(hex.Substring(<span class="code-digit">0</span>, <span class="code-digit">2</span>), system.Globalization.NumberStyles.HexNumber),
                <span class="code-keyword">int</span>.Parse(hex.Substring(<span class="code-digit">2</span>, <span class="code-digit">2</span>), System.Globalization.NumberStyles.HexNumber),
                <span class="code-keyword">int</span>.Parse(hex.Substring(<span class="code-digit">4</span>, <span class="code-digit">2</span>), System.Globalization.NumberStyles.HexNumber));
        }   
    }
}</pre>
</li>

<li>Then, in the <code>Load</code> event of <em>MainForm.cs</em>, add this line: 
<div class="pre-action-link" id="premain11" width="100%" style="display:block"><img id="preimg11" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/minus.gif" height="9" width="9" preid="11" style="cursor: pointer;"><span id="precollapse11" preid="11" style="cursor: pointer; margin-bottom: 0px;"> Collapse</span><span> | </span><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" preid="11">Copy Code</a></div><pre lang="cs" id="pre11" style="margin-top: 0px;"><span class="code-keyword">namespace</span> RibbonDemo
{
    <span class="code-keyword">public</span> <span class="code-keyword">partial</span> <span class="code-keyword">class</span> MainForm : RibbonForm
    {
        <span class="code-keyword">public</span> MainForm()
        {
            InitializeComponent();
            ChangeTheme();
        }

        <span class="code-keyword">private</span> <span class="code-keyword">void</span> ChangeTheme()
        {
            Theme.ColorTable = <span class="code-keyword">new</span> MyCoolThemeSkin();
            ribbon.Refresh();
            <span class="code-keyword">this</span>.Refresh(); 
        }
    }
}</pre>
</li>
</ol>
<hr>
<h2><a id="part7" title="part7" class="anchor" name="part7"></a>Part 7: Known Issues&nbsp;&nbsp;</h2>
Are resolved.<br><hr>
<h2><a id="log" title="log" class="anchor" name="log"></a>Article Change Log:&nbsp;</h2>

<p><strong></strong></p><p><strong>12 Nov 2013</strong>&nbsp;- Minor update on Part 6: Step 4:&nbsp;<strong>private void ChangeTheme()</strong>&nbsp;</p><p><strong>09 Oct 2013</strong>&nbsp;- Release of Version 07&nbsp;Oct 2013 (new style 2013, several bug fixes)&nbsp;</p><p><strong>11 May 2013</strong>&nbsp;- Update guides for Using Ribbon with MDI Enabled WinForm (Part 4)&nbsp;</p><p>
</p><p><strong>10 May 2013</strong>&nbsp;- Release of Version 10 May 2013 (several bug fixes)</p>

<p><strong></strong></p>

<p><strong></strong></p>

<p><strong></strong></p>

<p><strong>11 Mar 2013</strong>&nbsp;- Preliminary solution for the RibbonForm DockStyle.Fill issue in Win 7</p>

<p><strong>24 Feb 2013</strong>&nbsp;- Release of Version 24 Feb 2013&nbsp; (several bug fixes)</p>

<p><strong>13 Jan 2013</strong>&nbsp;- Release of Version 13 Jan 2013 (<strong>Include a ThemeBuilder</strong>) &nbsp;&nbsp;</p>

<p><strong>02 Jan 2013</strong><strong><span style="font-weight: normal;">&nbsp;- Introduce new compiled version of ribbon, released on 10 Jan 2012.</span>&nbsp;</strong>&nbsp;</p><ul>
</ul>
<strong>11 Apr 2012</strong>&nbsp;- Initial release.


						</div>
						

						
						
						<h2>License</h2>
						<div id="LicenseTerms"><p>This article, along with any associated source code and files, is licensed under <a href="http://www.opensource.org/licenses/ms-pl.html" rel="license">The Microsoft Public License (Ms-PL)</a></p></div>
						

						<div class="float-right" style="margin:20px 0 0 0;border:1px solid #ccc">
						<div class="msg-300x250" data-format="300x250" data-type="ad" data-publisher="lqm.codeproject.site" data-zone="ros" data-loadonview="true" data-tags="C#, Beginner, Ribbon,rating4.5"><iframe id="dmad2" allowtransparency="false" style="z-index:10" width="300" height="250" marginwidth="0" marginheight="0" frameborder="0" scrolling="no"></iframe></div>
						</div>

						
						<h2 id="ctl00_AboutHeading">About the Authors</h2>
						

<div class="container">
<div style="width:210px;overflow:hidden;float:left;text-align:center">
	<img id="ctl00_AboutAuthorRptr_ctl00_AboutAuthor_memberPhoto" class="profile-pic" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/member_unknown.gif" style="border-width:0px;transform:rotate(-1deg);">
</div>
<div class="container-member float-left" style="width:235px">
	<b><a id="ctl00_AboutAuthorRptr_ctl00_AboutAuthor_memberProfileLink" class="author" href="http://www.codeproject.com/Members/KoglTH">KoglTH</a></b>
	<div class="company">
		<span id="ctl00_AboutAuthorRptr_ctl00_AboutAuthor_memberJobTitle"></span>
		<span id="ctl00_AboutAuthorRptr_ctl00_AboutAuthor_memberCompany"></span> 
		<br><span id="ctl00_AboutAuthorRptr_ctl00_AboutAuthor_memberLocation">United States <img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/US.gif" alt="United States" width="16px" height="11px"></span>
	</div>
</div>
	
<div class="padded-top float-left clearfix" style="width:600px">
	No Biography provided

	

	
</div>
</div><br>
						
						

<div class="container">
<div style="width:210px;overflow:hidden;float:left;text-align:center">
	<img id="ctl00_AboutAuthorRptr_ctl01_AboutAuthor_memberPhoto" class="profile-pic" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/member_unknown.gif" style="border-width:0px;transform:rotate(-4deg);">
</div>
<div class="container-member float-left" style="width:235px">
	<b><a id="ctl00_AboutAuthorRptr_ctl01_AboutAuthor_memberProfileLink" class="author" href="http://www.codeproject.com/Members/Thomas-Oberndorfer">toATwork</a></b>
	<div class="company">
		<span id="ctl00_AboutAuthorRptr_ctl01_AboutAuthor_memberJobTitle">Software Developer (Senior)</span>
		<span id="ctl00_AboutAuthorRptr_ctl01_AboutAuthor_memberCompany"></span> 
		<br><span id="ctl00_AboutAuthorRptr_ctl01_AboutAuthor_memberLocation">Austria <img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/AT.gif" alt="Austria" width="16px" height="11px"></span>
	</div>
</div>
	
<div class="padded-top float-left clearfix" style="width:600px">
	No Biography provided

	

	
</div>
</div><br>
						
						

<div class="container">
<div style="width:210px;overflow:hidden;float:left;text-align:center">
	<img id="ctl00_AboutAuthorRptr_ctl02_AboutAuthor_memberPhoto" class="profile-pic" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/{6066257d-a96d-4996-b33f-d4eb9d55a339}.jpg" style="border-width:0px;transform:rotate(-3deg);">
</div>
<div class="container-member float-left" style="width:235px">
	<b><a id="ctl00_AboutAuthorRptr_ctl02_AboutAuthor_memberProfileLink" class="author" href="http://www.codeproject.com/Members/adriancs">adriancs</a></b>
	<div class="company">
		<span id="ctl00_AboutAuthorRptr_ctl02_AboutAuthor_memberJobTitle">Software Developer</span>
		<span id="ctl00_AboutAuthorRptr_ctl02_AboutAuthor_memberCompany"></span> 
		<br><span id="ctl00_AboutAuthorRptr_ctl02_AboutAuthor_memberLocation">Malaysia <img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/MY.gif" alt="Malaysia" width="16px" height="11px"></span>
	</div>
</div>
	
<div class="padded-top float-left clearfix" style="width:600px">
	Writing program is like another kind of art. Creating virtual life.

	

	
</div>
</div><br>
						
						

<div class="container">
<div style="width:210px;overflow:hidden;float:left;text-align:center">
	<img id="ctl00_AboutAuthorRptr_ctl03_AboutAuthor_memberPhoto" class="profile-pic" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/{50654466-c554-4a6f-ae0e-5dae326ae9ba}.PNG" style="border-width:0px;transform:rotate(1deg);">
</div>
<div class="container-member float-left" style="width:235px">
	<b><a id="ctl00_AboutAuthorRptr_ctl03_AboutAuthor_memberProfileLink" class="author" href="http://www.codeproject.com/Members/Michael-Spradlin">Michael Spradlin</a></b>
	<div class="company">
		<span id="ctl00_AboutAuthorRptr_ctl03_AboutAuthor_memberJobTitle">Software Developer (Senior)</span>
		<span id="ctl00_AboutAuthorRptr_ctl03_AboutAuthor_memberCompany"></span> 
		<br><span id="ctl00_AboutAuthorRptr_ctl03_AboutAuthor_memberLocation">United States <img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/US.gif" alt="United States" width="16px" height="11px"></span>
	</div>
</div>
	
<div class="padded-top float-left clearfix" style="width:600px">
	Lead Software Engineer on a paperless office / workflow system.  I specialize in building custom user controls and components that are using in my everyday software.  I've also worked with Neural Networks for character recognition on documents in my paperless office software.

	

	<div id="ctl00_AboutAuthorRptr_ctl03_AboutAuthor_FollowOn" class="padded-top">Follow on
		
		&nbsp; <a href="https://plus.google.com/mspradlin2010gmailcom"><img style="vertical-align:middle;border:0;" alt="Google+" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/gplus-32.png"></a> <a href="https://plus.google.com/mspradlin2010gmailcom?rel=author" rel="author" class="small-text">Google</a>
		
	</div>
</div>
</div><br>
						
						

						<div class="clearfix"></div>

						<div style="padding-top:8px">
							<a class="anchorLink" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#_articleTop">Article Top</a>
						</div>

						
						<div style="margin:auto;height:90px;margin-top:10px" class="sticky-stop"> 
							<div class="msg-728x90" data-format="728x90" data-type="ad" data-publisher="lqm.codeproject.site" data-zone="bottom" data-loadonview="true" data-tags="C#, Beginner, Ribbon,pos_bottom"><iframe id="dmad3" allowtransparency="false" style="z-index:10" width="728" height="90" marginwidth="0" marginheight="0" frameborder="0" scrolling="no"></iframe></div>
						</div>
						
					

					</form>

				</div>

				
					
					<h2>Comments and Discussions</h2>
					<a class="float-left" name="_comments" id="_comments">&nbsp;</a><div id="_MessageBoardctl00_MessageBoard" onclick="return SwitchMessage(event, null)">
	<table id="ForumTable" class="forum relaxed" cellpadding="0" cellspacing="0">
		<tbody><tr>
			<td class="header1 callout"><b>You must <a href="https://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs%3ffid%3d1704255%26df%3d90%26mpp%3d25%26noise%3d3%26prof%3dFalse%26sort%3dPosition%26view%3dNormal%26spc%3dRelaxed">Sign In</a> to use this message board.</b></td>
		</tr><tr>
			<td><table width="100%" border="0" cellpadding="3px" cellspacing="0">
				<tbody><tr class="header1">
					<td colspan="2" style="white-space:nowrap;"><div class="container">
						<div class="float-right">
							<form action="http://www.codeproject.com/Search.aspx?fid=0" method="get" class="searchbar">
								<input type="hidden" name="fid" value="1704255"><b>Search this forum </b><input type="search" class="search" name="qf">&nbsp;<input type="submit" value="Go" class="button">
							</form>
						</div>
					</div></td></tr><tr class="header2">
						<td></td><td style="width:100%;"><div style="text-align:right;">
							<form action="http://www.codeproject.com/script/Forums/SetOptions.aspx?floc=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs&fid=1704255&df=90&mpp=25&noise=3&prof=False&sort=Position&view=Normal&spc=Relaxed" method="get" style="margin:0;padding:0;">
								<input type="hidden" name="fid" value="1704255"><input type="hidden" name="currentQS" value="?floc=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs&amp;fid=1704255&amp;df=90&amp;mpp=25&amp;noise=3&amp;prof=False&amp;sort=Position&amp;view=Normal&amp;spc=Relaxed"><input type="hidden" name="floc" value="/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs"><input type="checkbox" name="prof" id="prof" style="vertical-align:middle;"><label for="prof">Profile popups</label>&nbsp;&nbsp;&nbsp;&nbsp;Spacing<select size="1" class="dropdown" name="spc">
									<option selected="" value="Relaxed">Relaxed</option><option value="Compact">Compact</option><option value="Tight">Tight</option>
								</select>&nbsp;&nbsp;Noise<select size="1" class="dropdown" name="noise">
									<option value="1">Very High</option><option value="2">High</option><option selected="" value="3">Medium</option><option value="4">Low</option><option value="5">Very Low</option>
								</select>&nbsp;&nbsp;Layout<select size="1" class="dropdown" name="view">
									<option selected="" value="Normal">Normal</option><option value="Topic">Open Topics</option><option value="Expanded">Open All</option><option value="Thread">Thread View</option>
								</select>&nbsp;&nbsp;Per page<select size="1" class="dropdown" name="mpp">
									<option value="10">10</option><option selected="" value="25">25</option><option value="50">50</option>
								</select>&nbsp;&nbsp;&nbsp;<input type="submit" value="Update" name="SetOpt" class="button">
							</form>
						</div></td>
					</tr>
				
			</tbody></table></td></tr><tr>
				<td><a name="xx0xx"></a><table border="0" cellpadding="2px" cellspacing="0" width="100%">
					<tbody><tr class="navbar">
						<td></td><td style="text-align:right;width:50%;"></td><td style="text-align:right;white-space:nowrap;"><span class="nav-link disabled">First</span> <span class="nav-link disabled">Prev</span><a class="nav-link" name="Frm_HoverNL" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&noise=3&prof=False&sort=Position&view=Normal&spc=Relaxed&fr=26#xx0xx">Next</a></td>
					</tr>
				</tbody></table></td>
			</tr><tr>
				<td><table border="0" cellpadding="0" cellspacing="0" width="100%" class="fixed-layout blank-background">
					<tbody><tr>
						<td><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t(2).gif" border="0" width="1px" height="5px" alt=""></td>
					</tr><tr id="F4783142_h0" class="header hover-row root">
						<td class="subject-line normal " width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr>
								<td width="20px" class="indent"><a name="xx4783142xx"></a><img height="16px" width="16px" align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_question.gif" alt="Question"></td><td class="subject hover-container"><a class="message-link" name="4783142" parent="0" thread="4783142" href="http://www.codeproject.com/Messages/4783142/Add-SubmenuItems-to-OrbMenuItem.aspx">Add SubmenuItems to OrbMenuItem</a> <a onclick="return Pin(this);" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" title="Click to pin message"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pin.png" border="0" align="top" alt="Pin" width="13px" height="13px"></a></td><td class="icon"><img border="0" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/icn-member-16.gif" title="member" alt="member" height="16px"></td><td class="author"><a href="http://www.codeproject.com/script/Membership/View.aspx?mid=10190315">Member 10190315</a></td><td class="date">16hrs 4mins  ago&nbsp;</td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4783142_h1" class="content root selected" style="display:none;">
						<td class="normal" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr valign="top">
								<td class="indent align-right" style="width:20px;"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t(2).gif" height="1px" width="20px" alt=""><div class="voteform vertical" ownerid="10190315" msgid="4783142" votingtype="GoodOrBad">

								</div></td><td class="text"><table border="0" cellpadding="0" cellspacing="5px" width="100%">
									<tbody><tr>
										<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tbody><tr>
												<td colspan="2">I can't figure out how to add submenuItems to OrbMenuItems.<br></td>
											</tr><tr class="footer" style="vertical-align:top;">
												<td><a href="http://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs">Sign In</a>·<wbr><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4783142" title="View Thread">View&nbsp;Thread</a>·<wbr><a href="http://www.codeproject.com/Messages/4783142/Add-SubmenuItems-to-OrbMenuItem.aspx" title="Get permanent link">Permalink</a></td><td style="text-align:right;"><span id="MVF4783142" data-ref="3_4783142" class="rating-label" style="white-space:nowrap;"></span></td>
											</tr>
										</tbody></table></td>
									</tr>
								</tbody></table></td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4759099_h0" class="header hover-row root">
						<td class="subject-line normal " width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr>
								<td width="20px" class="indent"><a name="xx4759099xx"></a><img height="16px" width="16px" align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_question.gif" alt="Question"></td><td class="subject hover-container"><a class="message-link" name="4759099" parent="0" thread="4759099" href="http://www.codeproject.com/Messages/4759099/NET-Extended-Question.aspx">.NET 4.0 Extended Question</a> <a onclick="return Pin(this);" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" title="Click to pin message"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pin.png" border="0" align="top" alt="Pin" width="13px" height="13px"></a></td><td class="icon"><img border="0" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/icn-pro-16.png" title="professional" alt="professional" height="16px"></td><td class="author"><a href="http://www.codeproject.com/script/Membership/View.aspx?mid=10439633">RHodgettUK</a></td><td class="date">13-Feb-14  23:04&nbsp;</td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4759099_h1" class="content root selected" style="display:none;">
						<td class="normal" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr valign="top">
								<td class="indent align-right" style="width:20px;"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t(2).gif" height="1px" width="20px" alt=""><div class="voteform vertical" ownerid="10439633" msgid="4759099" votingtype="GoodOrBad">

								</div></td><td class="text"><table border="0" cellpadding="0" cellspacing="5px" width="100%">
									<tbody><tr>
										<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tbody><tr>
												<td colspan="2">Hi,<br>
Just another quick question for you..<br>
&nbsp;<br>
I realise that this control only works with .NET 4.0 extended and not the client profile version. I assume from the testing with a machine without the extended edition that this library calls System.Design ?<br>
&nbsp;<br>
Does this control use any other components of the extended .NET 4.0 library and would it be possible for me to include these libraries with a release so they that it works on the .NET client version?<br>
&nbsp;<br>
Many thanks for any info or insight you might have!  <img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/smiley_biggrin.gif" align="top" alt="Big Grin | :-D"> <br></td>
											</tr><tr class="footer" style="vertical-align:top;">
												<td><a href="http://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs">Sign In</a>·<wbr><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4759099" title="View Thread">View&nbsp;Thread</a>·<wbr><a href="http://www.codeproject.com/Messages/4759099/NET-Extended-Question.aspx" title="Get permanent link">Permalink</a></td><td style="text-align:right;"><span id="MVF4759099" data-ref="3_4759099" class="rating-label" style="white-space:nowrap;"></span></td>
											</tr>
										</tbody></table></td>
									</tr>
								</tbody></table></td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4759102_h0" class="header hover-row">
						<td class="subject-line normal " width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr>
								<td width="38px" class="indent"><a name="xx4759102xx"></a><img height="16px" width="16px" align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_answer.gif" alt="Answer"></td><td class="subject hover-container"><a class="message-link" name="4759102" parent="4759099" thread="4759099" href="http://www.codeproject.com/Messages/4759102/Re-NET-Extended-Question.aspx">Re: .NET 4.0 Extended Question</a> <a onclick="return Pin(this);" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" title="Click to pin message"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pin.png" border="0" align="top" alt="Pin" width="13px" height="13px"></a></td><td class="icon"><img border="0" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/icn-pro-16.png" title="professional" alt="professional" height="16px"></td><td class="author"><a href="http://www.codeproject.com/script/Membership/View.aspx?mid=10439633">RHodgettUK</a></td><td class="date">13-Feb-14  23:06&nbsp;</td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4759102_h1" class="content selected" style="display:none;">
						<td class="normal" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr valign="top">
								<td class="indent align-right" style="width:38px;"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t(2).gif" height="1px" width="38px" alt=""><div class="voteform vertical" ownerid="10439633" msgid="4759102" votingtype="GoodOrBad">

								</div></td><td class="text"><table border="0" cellpadding="0" cellspacing="5px" width="100%">
									<tbody><tr>
										<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tbody><tr>
												<td colspan="2">I should state that, before the extended .NET was installed, the software ran but the ribbon menu was a grey colour that only showed the tabs when the mouse went over them. After selecting some buttons on the menu blindly it finally threw a unhandled exception saying that it could not load file or asssembly 'system.design'.<br></td>
											</tr><tr class="footer" style="vertical-align:top;">
												<td><a href="http://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs">Sign In</a>·<wbr><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4759099" title="View Thread">View&nbsp;Thread</a>·<wbr><a href="http://www.codeproject.com/Messages/4759102/Re-NET-Extended-Question.aspx" title="Get permanent link">Permalink</a></td><td style="text-align:right;"><span id="MVF4759102" data-ref="3_4759102" class="rating-label" style="white-space:nowrap;"></span></td>
											</tr>
										</tbody></table></td>
									</tr>
								</tbody></table></td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4759116_h0" class="header hover-row">
						<td class="subject-line normal " width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr>
								<td width="38px" class="indent"><a name="xx4759116xx"></a><img height="16px" width="16px" align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_answer.gif" alt="Answer"></td><td class="subject hover-container"><a class="message-link" name="4759116" parent="4759099" thread="4759099" href="http://www.codeproject.com/Messages/4759116/Re-NET-Extended-Question.aspx">Re: .NET 4.0 Extended Question</a> <a onclick="return Pin(this);" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" title="Click to pin message"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pin.png" border="0" align="top" alt="Pin" width="13px" height="13px"></a></td><td class="icon"><img border="0" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/icn-member-16.gif" title="member" alt="member" height="16px"></td><td class="author"><a href="http://www.codeproject.com/script/Membership/View.aspx?mid=2940220">toATwork</a></td><td class="date">13-Feb-14  23:19&nbsp;</td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4759116_h1" class="content selected" style="display:none;">
						<td class="normal" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr valign="top">
								<td class="indent align-right" style="width:38px;"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t(2).gif" height="1px" width="38px" alt=""><div class="voteform vertical" ownerid="2940220" msgid="4759116" votingtype="GoodOrBad">

								</div></td><td class="text"><table border="0" cellpadding="0" cellspacing="5px" width="100%">
									<tbody><tr>
										<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tbody><tr>
												<td colspan="2">System.Design.dll is needed for Design Time support of the Ribbon! At runtime I guess(!) it is not needed.<br>
&nbsp;<br>
Just try it. Install Client Profile (on a clean machine) only and the run your ribbon. Let me hear the result!<br></td>
											</tr><tr class="footer" style="vertical-align:top;">
												<td><a href="http://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs">Sign In</a>·<wbr><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4759099" title="View Thread">View&nbsp;Thread</a>·<wbr><a href="http://www.codeproject.com/Messages/4759116/Re-NET-Extended-Question.aspx" title="Get permanent link">Permalink</a></td><td style="text-align:right;"><span id="MVF4759116" data-ref="3_4759116" class="rating-label" style="white-space:nowrap;"></span></td>
											</tr>
										</tbody></table></td>
									</tr>
								</tbody></table></td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4759132_h0" class="header hover-row">
						<td class="subject-line normal " width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr>
								<td width="56px" class="indent"><a name="xx4759132xx"></a><img height="16px" width="16px" align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_general.gif" alt="General"></td><td class="subject hover-container"><a class="message-link" name="4759132" parent="4759116" thread="4759099" href="http://www.codeproject.com/Messages/4759132/Re-NET-Extended-Question.aspx">Re: .NET 4.0 Extended Question</a> <a onclick="return Pin(this);" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" title="Click to pin message"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pin.png" border="0" align="top" alt="Pin" width="13px" height="13px"></a></td><td class="icon"><img border="0" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/icn-pro-16.png" title="professional" alt="professional" height="16px"></td><td class="author"><a href="http://www.codeproject.com/script/Membership/View.aspx?mid=10439633">RHodgettUK</a></td><td class="date">13-Feb-14  23:38&nbsp;</td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4759132_h1" class="content selected" style="display:none;">
						<td class="normal" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr valign="top">
								<td class="indent align-right" style="width:56px;"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t(2).gif" height="1px" width="56px" alt=""><div class="voteform vertical" ownerid="10439633" msgid="4759132" votingtype="GoodOrBad">

								</div></td><td class="text"><table border="0" cellpadding="0" cellspacing="5px" width="100%">
									<tbody><tr>
										<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tbody><tr>
												<td colspan="2">Ok, may be a few weeks until I get a clean machine to play with but I'll post back when I know <img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/smiley_smile.gif" align="top" alt="Smile | :)"> <br></td>
											</tr><tr class="footer" style="vertical-align:top;">
												<td><a href="http://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs">Sign In</a>·<wbr><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4759099" title="View Thread">View&nbsp;Thread</a>·<wbr><a href="http://www.codeproject.com/Messages/4759132/Re-NET-Extended-Question.aspx" title="Get permanent link">Permalink</a></td><td style="text-align:right;"><span id="MVF4759132" data-ref="3_4759132" class="rating-label" style="white-space:nowrap;"></span></td>
											</tr>
										</tbody></table></td>
									</tr>
								</tbody></table></td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4753829_h0" class="header hover-row root">
						<td class="subject-line normal " width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr>
								<td width="20px" class="indent"><a name="xx4753829xx"></a><img height="16px" width="16px" align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_bug.gif" alt="Bug"></td><td class="subject hover-container"><a class="message-link" name="4753829" parent="0" thread="4753829" href="http://www.codeproject.com/Messages/4753829/Using-a-scrollable-panel-inside-an-MDI-form.aspx">Using a scrollable panel inside an MDI form</a> <a onclick="return Pin(this);" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" title="Click to pin message"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pin.png" border="0" align="top" alt="Pin" width="13px" height="13px"></a></td><td class="icon"><img border="0" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/icn-pro-16.png" title="professional" alt="professional" height="16px"></td><td class="author"><a href="http://www.codeproject.com/script/Membership/View.aspx?mid=10439633">RHodgettUK</a></td><td class="date">7-Feb-14  0:55&nbsp;</td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4753829_h1" class="content root selected" style="display:none;">
						<td class="normal" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr valign="top">
								<td class="indent align-right" style="width:20px;"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t(2).gif" height="1px" width="20px" alt=""><div class="voteform vertical" ownerid="10439633" msgid="4753829" votingtype="GoodOrBad">

								</div></td><td class="text"><table border="0" cellpadding="0" cellspacing="5px" width="100%">
									<tbody><tr>
										<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tbody><tr>
												<td colspan="2">Hi All,<br>
Thanks again for such a great control.<br>
&nbsp;<br>
However, I have been experiencing some issues using a scrollable panel in an MDI container form. <br>
I have a number of controls on a panel with autoscroll enabled. When the software runs and is maximised I can see the bottom of the panel and the scrollbar looks accurate however, whenever I unmaximise and adjust the size of my form, you can no longer see the controls at the bottom of the panel and the scroll bars do not reflect the height of the area. <br>
&nbsp;<br>
I don't know how well I have described this problem but hopefully the screenshots below will illustrate:<br>
&nbsp;<br>
Working (Maximised when loaded): http://s7.postimg.org/r1xwo49ob/working.png<br>
Not Working (Resized): http://s30.postimg.org/t5go7o0q9/notworking.png<br></td>
											</tr><tr class="footer" style="vertical-align:top;">
												<td><a href="http://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs">Sign In</a>·<wbr><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4753829" title="View Thread">View&nbsp;Thread</a>·<wbr><a href="http://www.codeproject.com/Messages/4753829/Using-a-scrollable-panel-inside-an-MDI-form.aspx" title="Get permanent link">Permalink</a></td><td style="text-align:right;"><span id="MVF4753829" data-ref="3_4753829" class="rating-label" style="white-space:nowrap;"></span></td>
											</tr>
										</tbody></table></td>
									</tr>
								</tbody></table></td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4755186_h0" class="header hover-row">
						<td class="subject-line normal " width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr>
								<td width="38px" class="indent"><a name="xx4755186xx"></a><img height="16px" width="16px" align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_question.gif" alt="Question"></td><td class="subject hover-container"><a class="message-link" name="4755186" parent="4753829" thread="4753829" href="http://www.codeproject.com/Messages/4755186/Re-Using-a-scrollable-panel-inside-an-MDI-form.aspx">Re: Using a scrollable panel inside an MDI form</a> <a onclick="return Pin(this);" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" title="Click to pin message"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pin.png" border="0" align="top" alt="Pin" width="13px" height="13px"></a></td><td class="icon"><img border="0" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/icn-member-16.gif" title="member" alt="member" height="16px"></td><td class="author"><a href="http://www.codeproject.com/script/Membership/View.aspx?mid=2940220">toATwork</a></td><td class="date">9-Feb-14  22:39&nbsp;</td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4755186_h1" class="content selected" style="display:none;">
						<td class="normal" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr valign="top">
								<td class="indent align-right" style="width:38px;"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t(2).gif" height="1px" width="38px" alt=""><div class="voteform vertical" ownerid="2940220" msgid="4755186" votingtype="GoodOrBad">

								</div></td><td class="text"><table border="0" cellpadding="0" cellspacing="5px" width="100%">
									<tbody><tr>
										<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tbody><tr>
												<td colspan="2">It seems to me that the inner Form is not Maximized. Can you check the WindowState? Also check the ClientSize of the outer window.<br></td>
											</tr><tr class="footer" style="vertical-align:top;">
												<td><a href="http://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs">Sign In</a>·<wbr><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4753829" title="View Thread">View&nbsp;Thread</a>·<wbr><a href="http://www.codeproject.com/Messages/4755186/Re-Using-a-scrollable-panel-inside-an-MDI-form.aspx" title="Get permanent link">Permalink</a></td><td style="text-align:right;"><span id="MVF4755186" data-ref="3_4755186" class="rating-label" style="white-space:nowrap;"></span></td>
											</tr>
										</tbody></table></td>
									</tr>
								</tbody></table></td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4755218_h0" class="header hover-row">
						<td class="subject-line normal " width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr>
								<td width="56px" class="indent"><a name="xx4755218xx"></a><img height="16px" width="16px" align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_answer.gif" alt="Answer"></td><td class="subject hover-container"><a class="message-link" name="4755218" parent="4755186" thread="4753829" href="http://www.codeproject.com/Messages/4755218/Re-Using-a-scrollable-panel-inside-an-MDI-form.aspx">Re: Using a scrollable panel inside an MDI form</a> <a onclick="return Pin(this);" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" title="Click to pin message"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pin.png" border="0" align="top" alt="Pin" width="13px" height="13px"></a></td><td class="icon"><img border="0" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/icn-pro-16.png" title="professional" alt="professional" height="16px"></td><td class="author"><a href="http://www.codeproject.com/script/Membership/View.aspx?mid=10439633">RHodgettUK</a></td><td class="date">9-Feb-14  23:21&nbsp;</td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4755218_h1" class="content selected" style="display:none;">
						<td class="normal" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr valign="top">
								<td class="indent align-right" style="width:56px;"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t(2).gif" height="1px" width="56px" alt=""><div class="voteform vertical" ownerid="10439633" msgid="4755218" votingtype="GoodOrBad">

								</div></td><td class="text"><table border="0" cellpadding="0" cellspacing="5px" width="100%">
									<tbody><tr>
										<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tbody><tr>
												<td colspan="2">Hi,<br>
In both cases the inner form is maximised and the client sizes are shown in the attached images:<br>
&nbsp;<br>
Maximised (normal): http://s10.postimg.org/kxrsnbrc9/Normal.png<br>
unMaximised (problem): http://s4.postimg.org/nmr04y0gt/Problem.png<br>
&nbsp;<br>
I used the following code to get this: <br>
<pre lang="c#"><span class="code-keyword">var</span> ClientForm = Application.OpenForms.OfType&lt;MainWindow&gt;().<span class="code-SDKkeyword">Single</span>();
MessageBox.Show(<span class="code-string">"</span><span class="code-string">WindowState of Form is: "</span> + <span class="code-keyword">this</span>.WindowState.ToString() + <span class="code-string">"</span><span class="code-string">\n\nClientSize of Outer Window, Height: "</span> + ClientForm.ClientSize.Height.ToString() + <span class="code-string">"</span><span class="code-string">,  and Width: "</span> + ClientForm.ClientSize.Width.ToString());
</pre>
&nbsp;<br>
I'm still really stuck with this and would really appreciate any help you could give me! <img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/smiley_smile.gif" align="top" alt="Smile | :)"> <br></td>
											</tr><tr class="footer" style="vertical-align:top;">
												<td><a href="http://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs">Sign In</a>·<wbr><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4753829" title="View Thread">View&nbsp;Thread</a>·<wbr><a href="http://www.codeproject.com/Messages/4755218/Re-Using-a-scrollable-panel-inside-an-MDI-form.aspx" title="Get permanent link">Permalink</a></td><td style="text-align:right;"><span id="MVF4755218" data-ref="3_4755218" class="rating-label" style="white-space:nowrap;"></span></td>
											</tr>
										</tbody></table></td>
									</tr>
								</tbody></table></td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4755223_h0" class="header hover-row">
						<td class="subject-line normal " width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr>
								<td width="74px" class="indent"><a name="xx4755223xx"></a><img height="16px" width="16px" align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_answer.gif" alt="Answer"></td><td class="subject hover-container"><a class="message-link" name="4755223" parent="4755218" thread="4753829" href="http://www.codeproject.com/Messages/4755223/Re-Using-a-scrollable-panel-inside-an-MDI-form.aspx">Re: Using a scrollable panel inside an MDI form</a> <a onclick="return Pin(this);" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" title="Click to pin message"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pin.png" border="0" align="top" alt="Pin" width="13px" height="13px"></a></td><td class="icon"><img border="0" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/icn-member-16.gif" title="member" alt="member" height="16px"></td><td class="author"><a href="http://www.codeproject.com/script/Membership/View.aspx?mid=2940220">toATwork</a></td><td class="date">9-Feb-14  23:29&nbsp;</td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4755223_h1" class="content selected" style="display:none;">
						<td class="normal" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr valign="top">
								<td class="indent align-right" style="width:74px;"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t(2).gif" height="1px" width="74px" alt=""><div class="voteform vertical" ownerid="2940220" msgid="4755223" votingtype="GoodOrBad">

								</div></td><td class="text"><table border="0" cellpadding="0" cellspacing="5px" width="100%">
									<tbody><tr>
										<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tbody><tr>
												<td colspan="2">I think I know your problem. Do you have fixed location on your controls? Meaning no (or wrong) docking. If no docking, check the anchor style of your bottom control, it is most likely Top+Left which is in your case wrong.<br></td>
											</tr><tr class="footer" style="vertical-align:top;">
												<td><a href="http://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs">Sign In</a>·<wbr><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4753829" title="View Thread">View&nbsp;Thread</a>·<wbr><a href="http://www.codeproject.com/Messages/4755223/Re-Using-a-scrollable-panel-inside-an-MDI-form.aspx" title="Get permanent link">Permalink</a></td><td style="text-align:right;"><span id="MVF4755223" data-ref="3_4755223" class="rating-label" style="white-space:nowrap;"></span></td>
											</tr>
										</tbody></table></td>
									</tr>
								</tbody></table></td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4758547_h0" class="header hover-row">
						<td class="subject-line normal " width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr>
								<td width="92px" class="indent"><a name="xx4758547xx"></a><img height="16px" width="16px" align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_general.gif" alt="General"></td><td class="subject hover-container"><a class="message-link" name="4758547" parent="4755223" thread="4753829" href="http://www.codeproject.com/Messages/4758547/Re-Using-a-scrollable-panel-inside-an-MDI-form.aspx">Re: Using a scrollable panel inside an MDI form</a> <a onclick="return Pin(this);" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" title="Click to pin message"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pin.png" border="0" align="top" alt="Pin" width="13px" height="13px"></a></td><td class="icon"><img border="0" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/icn-pro-16.png" title="professional" alt="professional" height="16px"></td><td class="author"><a href="http://www.codeproject.com/script/Membership/View.aspx?mid=10439633">RHodgettUK</a></td><td class="date">13-Feb-14  4:46&nbsp;</td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4758547_h1" class="content selected" style="display:none;">
						<td class="normal" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr valign="top">
								<td class="indent align-right" style="width:92px;"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t(2).gif" height="1px" width="92px" alt=""><div class="voteform vertical" ownerid="10439633" msgid="4758547" votingtype="GoodOrBad">

								</div></td><td class="text"><table border="0" cellpadding="0" cellspacing="5px" width="100%">
									<tbody><tr>
										<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tbody><tr>
												<td colspan="2">Thank you, I found the problem. The mdichildform had a minimum size associated with it. Removed it and it works <img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/smiley_smile.gif" align="top" alt="Smile | :)">  thanks for the help and sorry for the confusion!<br></td>
											</tr><tr class="footer" style="vertical-align:top;">
												<td><a href="http://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs">Sign In</a>·<wbr><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4753829" title="View Thread">View&nbsp;Thread</a>·<wbr><a href="http://www.codeproject.com/Messages/4758547/Re-Using-a-scrollable-panel-inside-an-MDI-form.aspx" title="Get permanent link">Permalink</a></td><td style="text-align:right;"><span id="MVF4758547" data-ref="3_4758547" class="rating-label" style="white-space:nowrap;"></span></td>
											</tr>
										</tbody></table></td>
									</tr>
								</tbody></table></td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4743277_h0" class="header hover-row root">
						<td class="subject-line normal " width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr>
								<td width="20px" class="indent"><a name="xx4743277xx"></a><img height="16px" width="16px" align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_question.gif" alt="Question"></td><td class="subject hover-container"><a class="message-link" name="4743277" parent="0" thread="4743277" href="http://www.codeproject.com/Messages/4743277/Orb-Menu.aspx">Orb Menu</a> <a onclick="return Pin(this);" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" title="Click to pin message"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pin.png" border="0" align="top" alt="Pin" width="13px" height="13px"></a></td><td class="icon"><img border="0" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/icn-member-16.gif" title="member" alt="member" height="16px"></td><td class="author"><a href="http://www.codeproject.com/script/Membership/View.aspx?mid=2640668">GrooverMD</a></td><td class="date">22-Jan-14  22:15&nbsp;</td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4743277_h1" class="content root selected" style="display:none;">
						<td class="normal" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr valign="top">
								<td class="indent align-right" style="width:20px;"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t(2).gif" height="1px" width="20px" alt=""><div class="voteform vertical" ownerid="2640668" msgid="4743277" votingtype="GoodOrBad">

								</div></td><td class="text"><table border="0" cellpadding="0" cellspacing="5px" width="100%">
									<tbody><tr>
										<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tbody><tr>
												<td colspan="2">Can you post an orb menu tutorial as I changed the text on the orb button and lost the menu?<br></td>
											</tr><tr class="footer" style="vertical-align:top;">
												<td><a href="http://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs">Sign In</a>·<wbr><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4743277" title="View Thread">View&nbsp;Thread</a>·<wbr><a href="http://www.codeproject.com/Messages/4743277/Orb-Menu.aspx" title="Get permanent link">Permalink</a></td><td style="text-align:right;"><span id="MVF4743277" data-ref="3_4743277" class="rating-label" style="white-space:nowrap;"></span></td>
											</tr>
										</tbody></table></td>
									</tr>
								</tbody></table></td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4770488_h0" class="header hover-row">
						<td class="subject-line normal " width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr>
								<td width="38px" class="indent"><a name="xx4770488xx"></a><img height="16px" width="16px" align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_question.gif" alt="Question"></td><td class="subject hover-container"><a class="message-link" name="4770488" parent="4743277" thread="4743277" href="http://www.codeproject.com/Messages/4770488/Need-help-with-the-applicationmenu.aspx">Need help with the "applicationmenu"</a> <a onclick="return Pin(this);" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" title="Click to pin message"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pin.png" border="0" align="top" alt="Pin" width="13px" height="13px"></a></td><td class="icon"><img border="0" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/icn-member-16.gif" title="member" alt="member" height="16px"></td><td class="author"><a href="http://www.codeproject.com/script/Membership/View.aspx?mid=10638311">Member 10638311</a></td><td class="date">2-Mar-14  20:48&nbsp;</td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4770488_h1" class="content selected" style="display:none;">
						<td class="normal" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr valign="top">
								<td class="indent align-right" style="width:38px;"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t(2).gif" height="1px" width="38px" alt=""><div class="voteform vertical" ownerid="10638311" msgid="4770488" votingtype="GoodOrBad">

								</div></td><td class="text"><table border="0" cellpadding="0" cellspacing="5px" width="100%">
									<tbody><tr>
										<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tbody><tr>
												<td colspan="2">Hi,<br>
&nbsp;<br>
I have the same problem. I don't know how to design the "applicationmenu" with the "ribbonorbmenuitem"'s.<br>
&nbsp;<br>
I will use the designeditor from "visual studio". But I don't find an suitable entry in the properties of the ribbonmenu. <br>
&nbsp;<br>
Thanks for your help.<br>
&nbsp;<br>
Bye...<br></td>
											</tr><tr class="footer" style="vertical-align:top;">
												<td><a href="http://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs">Sign In</a>·<wbr><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4743277" title="View Thread">View&nbsp;Thread</a>·<wbr><a href="http://www.codeproject.com/Messages/4770488/Need-help-with-the-applicationmenu.aspx" title="Get permanent link">Permalink</a></td><td style="text-align:right;"><span id="MVF4770488" data-ref="3_4770488" class="rating-label" style="white-space:nowrap;"></span></td>
											</tr>
										</tbody></table></td>
									</tr>
								</tbody></table></td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4770559_h0" class="header hover-row">
						<td class="subject-line normal " width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr>
								<td width="56px" class="indent"><a name="xx4770559xx"></a><img height="16px" width="16px" align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_answer.gif" alt="Answer"></td><td class="subject hover-container"><a class="message-link" name="4770559" parent="4770488" thread="4743277" href="http://www.codeproject.com/Messages/4770559/Re-Need-help-with-the-applicationmenu.aspx">Re: Need help with the "applicationmenu"</a> <a onclick="return Pin(this);" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" title="Click to pin message"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pin.png" border="0" align="top" alt="Pin" width="13px" height="13px"></a></td><td class="icon"><img border="0" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/icn-member-16.gif" title="member" alt="member" height="16px"></td><td class="author"><a href="http://www.codeproject.com/script/Membership/View.aspx?mid=10638311">Member 10638311</a></td><td class="date">2-Mar-14  22:43&nbsp;</td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4770559_h1" class="content selected" style="display:none;">
						<td class="normal" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr valign="top">
								<td class="indent align-right" style="width:56px;"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t(2).gif" height="1px" width="56px" alt=""><div class="voteform vertical" ownerid="10638311" msgid="4770559" votingtype="GoodOrBad">

								</div></td><td class="text"><table border="0" cellpadding="0" cellspacing="5px" width="100%">
									<tbody><tr>
										<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tbody><tr>
												<td colspan="2">Hi, <br>
&nbsp;<br>
I found the menu. Go to ribbon.orbdropdown.menuitems! Here you can add and remove.<br>
&nbsp;<br>
Bye<br></td>
											</tr><tr class="footer" style="vertical-align:top;">
												<td><a href="http://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs">Sign In</a>·<wbr><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4743277" title="View Thread">View&nbsp;Thread</a>·<wbr><a href="http://www.codeproject.com/Messages/4770559/Re-Need-help-with-the-applicationmenu.aspx" title="Get permanent link">Permalink</a></td><td style="text-align:right;"><span id="MVF4770559" data-ref="3_4770559" class="rating-label" style="white-space:nowrap;"></span></td>
											</tr>
										</tbody></table></td>
									</tr>
								</tbody></table></td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4736471_h0" class="header hover-row root">
						<td class="subject-line normal " width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr>
								<td width="20px" class="indent"><a name="xx4736471xx"></a><img height="16px" width="16px" align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_question.gif" alt="Question"></td><td class="subject hover-container"><a class="message-link" name="4736471" parent="0" thread="4736471" href="http://www.codeproject.com/Messages/4736471/An-unhandled-exception-of-type-System-StackOverflo.aspx">An unhandled exception of type 'System.StackOverflowException' occurred in System.Drawing.dll</a> <a onclick="return Pin(this);" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" title="Click to pin message"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pin.png" border="0" align="top" alt="Pin" width="13px" height="13px"></a></td><td class="icon"><img border="0" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/icn-member-16.gif" title="member" alt="member" height="16px"></td><td class="author"><a href="http://www.codeproject.com/script/Membership/View.aspx?mid=10439633">Member 10439633</a></td><td class="date">13-Jan-14  0:32&nbsp;</td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4736471_h1" class="content root selected" style="display:none;">
						<td class="normal" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr valign="top">
								<td class="indent align-right" style="width:20px;"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t(2).gif" height="1px" width="20px" alt=""><div class="voteform vertical" ownerid="10439633" msgid="4736471" votingtype="GoodOrBad">

								</div></td><td class="text"><table border="0" cellpadding="0" cellspacing="5px" width="100%">
									<tbody><tr>
										<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tbody><tr>
												<td colspan="2">Hi,<br>I am having a little problem with ActiveTabChanged event.<br>&nbsp;<br>Under the following code:<br>&nbsp;<br>&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; private void ribbon1_ActiveTabChanged(object sender, EventArgs e)<br>&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; {<br>&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; if (fileopen == true)<br>&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; {<br>&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;  // Do Stuff<br>&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; }<br>&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; else<br>&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; {<br>&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;  ribbon1.ActiveTab = ribbon1.Tabs[0]; <br>&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; }<br>&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; }<br>&nbsp;<br>I get an unhanded exception of type 'System.StackOverflowException' occurred in System.Drawing.dll error. <br>&nbsp;<br>Is there something I can do to make this work? I only want tabs (besides the first tab) accessible unless a file is open.<br>&nbsp;<br>Many Thanks!!<br></td>
											</tr><tr class="footer" style="vertical-align:top;">
												<td><a href="http://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs">Sign In</a>·<wbr><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4736471" title="View Thread">View&nbsp;Thread</a>·<wbr><a href="http://www.codeproject.com/Messages/4736471/An-unhandled-exception-of-type-System-StackOverflo.aspx" title="Get permanent link">Permalink</a></td><td style="text-align:right;"><span id="MVF4736471" data-ref="3_4736471" class="rating-label" style="white-space:nowrap;"></span></td>
											</tr>
										</tbody></table></td>
									</tr>
								</tbody></table></td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4741049_h0" class="header hover-row">
						<td class="subject-line normal " width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr>
								<td width="38px" class="indent"><a name="xx4741049xx"></a><img height="16px" width="16px" align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_answer.gif" alt="Answer"></td><td class="subject hover-container"><a class="message-link" name="4741049" parent="4736471" thread="4736471" href="http://www.codeproject.com/Messages/4741049/Re-An-unhandled-exception-of-type-System-StackOver.aspx">Re: An unhandled exception of type 'System.StackOverflowException' occurred in System.Drawing.dll</a> <a onclick="return Pin(this);" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" title="Click to pin message"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pin.png" border="0" align="top" alt="Pin" width="13px" height="13px"></a></td><td class="icon"><img border="0" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/icn-member-16.gif" title="member" alt="member" height="16px"></td><td class="author"><a href="http://www.codeproject.com/script/Membership/View.aspx?mid=2940220">toATwork</a></td><td class="date">20-Jan-14  0:17&nbsp;</td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4741049_h1" class="content selected" style="display:none;">
						<td class="normal" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr valign="top">
								<td class="indent align-right" style="width:38px;"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t(2).gif" height="1px" width="38px" alt=""><div class="voteform vertical" ownerid="2940220" msgid="4741049" votingtype="GoodOrBad">

								</div></td><td class="text"><table border="0" cellpadding="0" cellspacing="5px" width="100%">
									<tbody><tr>
										<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tbody><tr>
												<td colspan="2">I don't know what you want to achieve. But that this code produces a StackOverflowException is IMHO correct!<br>
If the active tab is changed, your event handler is called. If no file is open, the active tab is changed. Your event handler is called again. If no file is open....<br></td>
											</tr><tr class="footer" style="vertical-align:top;">
												<td><a href="http://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs">Sign In</a>·<wbr><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4736471" title="View Thread">View&nbsp;Thread</a>·<wbr><a href="http://www.codeproject.com/Messages/4741049/Re-An-unhandled-exception-of-type-System-StackOver.aspx" title="Get permanent link">Permalink</a></td><td style="text-align:right;"><span id="MVF4741049" data-ref="3_4741049" class="rating-label" style="white-space:nowrap;"></span></td>
											</tr>
										</tbody></table></td>
									</tr>
								</tbody></table></td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4741222_h0" class="header hover-row">
						<td class="subject-line normal " width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr>
								<td width="38px" class="indent"><a name="xx4741222xx"></a><img height="16px" width="16px" align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_answer.gif" alt="Answer"></td><td class="subject hover-container"><a class="message-link" name="4741222" parent="4736471" thread="4736471" href="http://www.codeproject.com/Messages/4741222/Re-An-unhandled-exception-of-type-System-StackOver.aspx">Re: An unhandled exception of type 'System.StackOverflowException' occurred in System.Drawing.dll</a> <a onclick="return Pin(this);" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" title="Click to pin message"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pin.png" border="0" align="top" alt="Pin" width="13px" height="13px"></a></td><td class="icon"><img border="0" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/icn-member-16.gif" title="member" alt="member" height="16px"></td><td class="author"><a href="http://www.codeproject.com/script/Membership/View.aspx?mid=7592043">adriancs</a></td><td class="date">20-Jan-14  4:19&nbsp;</td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4741222_h1" class="content selected" style="display:none;">
						<td class="normal" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr valign="top">
								<td class="indent align-right" style="width:38px;"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t(2).gif" height="1px" width="38px" alt=""><div class="voteform vertical" ownerid="7592043" msgid="4741222" votingtype="GoodOrBad">

								</div></td><td class="text"><table border="0" cellpadding="0" cellspacing="5px" width="100%">
									<tbody><tr>
										<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tbody><tr>
												<td colspan="2">You can prevent this by adding bool check to avoid the same event is called in endless loop, example:<br>
<pre lang="c#"><span class="code-keyword">bool</span> stopRecursiveRun = <span class="code-keyword">false</span>;
&nbsp;
<span class="code-keyword">private</span> <span class="code-keyword">void</span> ribbon1_ActiveTabChanged(<span class="code-keyword">object</span> sender, EventArgs e)
{
    <span class="code-keyword">if</span> (stopRecursiveRun)
        <span class="code-keyword">return</span>;
&nbsp;
    <span class="code-keyword">try</span>
    {
        stopRecursiveRun = <span class="code-keyword">true</span>;
&nbsp;
        <span class="code-keyword">if</span> (fileopen == <span class="code-keyword">true</span>)
        {
            <span class="code-comment">//</span><span class="code-comment"> Do Stuff
</span>        }
        <span class="code-keyword">else</span>
        {
            ribbon1.ActiveTab = ribbon1.Tabs[<span class="code-digit">0</span>]; 
        }
    }
    <span class="code-keyword">catch</span> 
    {
        <span class="code-comment">//</span><span class="code-comment"> do something
</span>    }
    <span class="code-keyword">finally</span>
    {
        stopRecursiveRun = <span class="code-keyword">false</span>;
    }
}</pre><br></td>
											</tr><tr class="footer" style="vertical-align:top;">
												<td><a href="http://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs">Sign In</a>·<wbr><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4736471" title="View Thread">View&nbsp;Thread</a>·<wbr><a href="http://www.codeproject.com/Messages/4741222/Re-An-unhandled-exception-of-type-System-StackOver.aspx" title="Get permanent link">Permalink</a></td><td style="text-align:right;"><span id="MVF4741222" data-ref="3_4741222" class="rating-label" style="white-space:nowrap;"></span></td>
											</tr>
										</tbody></table></td>
									</tr>
								</tbody></table></td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4733803_h0" class="header hover-row root">
						<td class="subject-line normal " width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr>
								<td width="20px" class="indent"><a name="xx4733803xx"></a><img height="16px" width="16px" align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_bug.gif" alt="Bug"></td><td class="subject hover-container"><a class="message-link" name="4733803" parent="0" thread="4733803" href="http://www.codeproject.com/Messages/4733803/Little-bugs-and-suggestions-for-improvement.aspx">Little bugs and suggestions for improvement</a> <a onclick="return Pin(this);" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" title="Click to pin message"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pin.png" border="0" align="top" alt="Pin" width="13px" height="13px"></a></td><td class="icon"><img border="0" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/icn-member-16.gif" title="member" alt="member" height="16px"></td><td class="author"><a href="http://www.codeproject.com/script/Membership/View.aspx?mid=4129817">papat2006</a></td><td class="date">7-Jan-14  23:25&nbsp;</td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4733803_h1" class="content root selected" style="display:none;">
						<td class="normal" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr valign="top">
								<td class="indent align-right" style="width:20px;"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t(2).gif" height="1px" width="20px" alt=""><div class="voteform vertical" ownerid="4129817" msgid="4733803" votingtype="GoodOrBad">

								</div></td><td class="text"><table border="0" cellpadding="0" cellspacing="5px" width="100%">
									<tbody><tr>
										<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tbody><tr>
												<td colspan="2">Hello,<br>
&nbsp;<br>
I find the following error in the new release :<br>
 - When changing style, new value is not apply. I corrected this pb by reversing blnSetOnly value in Ribbon.cs (Line 456 and 502) <pre lang="cs">  Theme.blnSetOnly = <span class="code-keyword">false</span>;
  Theme.ThemeColor = value;
  Theme.blnSetOnly = <span class="code-keyword">true</span>;</pre>
&nbsp;<br>
- When apply a Color with an "Office_2007" style, tab only have back color.<br>
I corrected this problem by setting in all DrawTab function:<br>
<pre lang="cs"><span class="code-keyword">if</span> (e.Ribbon.OrbStyle == RibbonOrbStyle.Office_2010 || e.Ribbon.OrbStyle == RibbonOrbStyle.Office_2007)</pre> instead of <pre lang="cs"><span class="code-keyword">if</span> (e.Ribbon.OrbStyle == RibbonOrbStyle.Office_2010)</pre>
&nbsp;<br>
- When adding "Paint" event on RibbonForm, the event is never raised.<br>
I find in a forum it's necessary to call "base.OnPaint" in "OnPaint". <br>
I added this call to correct this point in the file<br>
  * Ribbon.cs<br>
  * RibbonForm.cs<br>
  <br>
I propose you to add "ShortcutKey" in ribbon. I have done that by adding :<br>
* in RibbonButton.cs =&gt; implement ShortcutKey<br>
<pre>      <span class="code-keyword">private</span> Keys _shorcutKey;
&nbsp;
      <span class="code-SummaryComment">///</span><span class="code-comment"> <span class="code-SummaryComment">&lt;</span><span class="code-SummaryComment">summary</span><span class="code-SummaryComment">&gt;</span>
</span>      <span class="code-SummaryComment">///</span><span class="code-comment"> Gets ShortcutKey string, to add it in toolTip
</span>      <span class="code-SummaryComment">///</span><span class="code-comment"> <span class="code-SummaryComment">&lt;</span><span class="code-SummaryComment">/</span><span class="code-SummaryComment">summary</span><span class="code-SummaryComment">&gt;</span>
</span>      <span class="code-keyword">public</span> string ShorcutKeyString
      {
          get
          {
              <span class="code-keyword">if</span> (<span class="code-keyword">this</span>._shorcutKey == Keys.None)
              {
                  <span class="code-keyword">return</span> string.Empty;
              }
&nbsp;
              StringBuilder retour = <span class="code-keyword">new</span> StringBuilder();
              Keys key = <span class="code-keyword">this</span>._shorcutKey;
&nbsp;
              <span class="code-keyword">if</span> ((key &amp; Keys.Control) == Keys.Control)
              {
                  retour.Append(<span class="code-string">"</span><span class="code-string">Ctrl"</span>);
                  key = key &amp; ~Keys.Control;
              }
&nbsp;
              <span class="code-keyword">if</span> ((key &amp; Keys.Alt) == Keys.Alt)
              {
                  <span class="code-keyword">if</span> (retour.Length &gt; <span class="code-digit">0</span>)
                  {
                      retour.Append(<span class="code-string">"</span><span class="code-string">+"</span>);
                  }
&nbsp;
                  retour.Append(<span class="code-string">"</span><span class="code-string">Alt"</span>);
                  key = key &amp; ~Keys.Alt;
              }
&nbsp;
              <span class="code-keyword">if</span> ((key &amp; Keys.Shift) == Keys.Shift)
              {
                  <span class="code-keyword">if</span> (retour.Length &gt; <span class="code-digit">0</span>)
                  {
                      retour.Append(<span class="code-string">"</span><span class="code-string">+"</span>);
                  }
&nbsp;
                  retour.Append(<span class="code-string">"</span><span class="code-string">Maj"</span>);
                  key = key &amp; ~Keys.Shift;
              }
&nbsp;
              <span class="code-keyword">if</span> (key != Keys.None)
              {
                  <span class="code-keyword">if</span> (retour.Length &gt; <span class="code-digit">0</span>)
                  {
                      retour.Append(<span class="code-string">"</span><span class="code-string">+"</span>);
                  }
&nbsp;
                  retour.Append(key.ToString());
              }
&nbsp;
              <span class="code-keyword">return</span> retour.ToString();
          }
      }
&nbsp;
      <span class="code-SummaryComment">///</span><span class="code-comment"> <span class="code-SummaryComment">&lt;</span><span class="code-SummaryComment">summary</span><span class="code-SummaryComment">&gt;</span>
</span>      <span class="code-SummaryComment">///</span><span class="code-comment"> Gets or sets ShortcutKey value
</span>      <span class="code-SummaryComment">///</span><span class="code-comment"> <span class="code-SummaryComment">&lt;</span><span class="code-SummaryComment">/</span><span class="code-SummaryComment">summary</span><span class="code-SummaryComment">&gt;</span>
</span>      [DefaultValue(typeof(Keys), <span class="code-string">"</span><span class="code-string">None"</span>)]
      <span class="code-keyword">public</span> Keys ShorcutKey
      {
          get { <span class="code-keyword">return</span> _shorcutKey; }
          set
          {
              _shorcutKey = <span class="code-keyword">value</span>;
          }
      }
</pre>
&nbsp;<br>
* in RibbonForm.cs =&gt; to launch  function if sortcut is detected<br>
<pre>        <span class="code-keyword">protected</span> <span class="code-keyword">override</span> <span class="code-keyword">bool</span> ProcessCmdKey(<span class="code-keyword">ref</span> Message msg, Keys keyData)
        {
            <span class="code-keyword">bool</span> find = <span class="code-keyword">false</span>;
&nbsp;
            <span class="code-keyword">if</span> (_helper != null &amp;&amp; _helper.Ribbon != null)
            {
                foreach (var control <span class="code-keyword">in</span> <span class="code-keyword">this</span>._helper.Ribbon.OrbDropDown.MenuItems)
                {
                    RibbonButton button = control as RibbonButton;
&nbsp;
                    <span class="code-keyword">if</span> (button != null &amp;&amp; keyData == button.ShorcutKey &amp;&amp; button.Enabled)
                    {
                        button.OnClick(<span class="code-keyword">new</span> EventArgs());
                        find = <span class="code-keyword">true</span>;
                        <span class="code-keyword">break</span>;
                    }
                }
&nbsp;
                <span class="code-keyword">if</span> (!find)
                {
                    foreach (RibbonTab ribbonTab <span class="code-keyword">in</span> <span class="code-keyword">this</span>._helper.Ribbon.Tabs)
                    {
                        foreach (RibbonPanel ribbonPanel <span class="code-keyword">in</span> ribbonTab.Panels)
                        {
                            foreach (RibbonItem ribbonItem <span class="code-keyword">in</span> ribbonPanel.Items)
                            {
                                RibbonButton button = ribbonItem as RibbonButton;
&nbsp;
                                <span class="code-keyword">if</span> (button != null &amp;&amp; keyData == button.ShorcutKey &amp;&amp; button.Enabled)
                                {
                                    button.OnClick(<span class="code-keyword">new</span> EventArgs());
                                    find = <span class="code-keyword">true</span>;
                                    <span class="code-keyword">break</span>;
                                }
                            }
&nbsp;
                            <span class="code-keyword">if</span> (find)
                            {
                                <span class="code-keyword">break</span>;
                            }
                        }
&nbsp;
                        <span class="code-keyword">if</span> (find)
                        {
                            <span class="code-keyword">break</span>;
                        }
                    }
                }
            }
&nbsp;
            <span class="code-keyword">if</span> (!find)
            {
                <span class="code-keyword">return</span> base.ProcessCmdKey(<span class="code-keyword">ref</span> msg, keyData);
            }
&nbsp;
            <span class="code-keyword">return</span> <span class="code-keyword">true</span>;
        }</pre>
&nbsp;<br>
* In RibbonItem =&gt; Changing toolTip to add ShortcutKey<br>
&nbsp;<br>
<pre>        <span class="code-SummaryComment">///</span><span class="code-comment"> <span class="code-SummaryComment">&lt;</span><span class="code-SummaryComment">summary</span><span class="code-SummaryComment">&gt;</span>
</span>        <span class="code-SummaryComment">///</span><span class="code-comment"> Gets or sets the tool tip text
</span>        <span class="code-SummaryComment">///</span><span class="code-comment"> <span class="code-SummaryComment">&lt;</span><span class="code-SummaryComment">/</span><span class="code-SummaryComment">summary</span><span class="code-SummaryComment">&gt;</span>
</span>        [DefaultValue(null)]
        [Localizable(<span class="code-keyword">true</span>)]
        <span class="code-keyword">public</span> string ToolTip
        {
            get
            {
                string tooltip = _tooltip;
&nbsp;
                <span class="code-keyword">if</span> (!this.DesignMode)
                {
                    RibbonButton btn = <span class="code-keyword">this</span> as RibbonButton;
&nbsp;
                    <span class="code-keyword">if</span> (btn != null)
                    {
                        <span class="code-keyword">if</span> (btn.ShorcutKey != Keys.None)
                        {
                            <span class="code-keyword">if</span> (!string.IsNullOrEmpty(tooltip))
                            {
                                <span class="code-comment">//</span><span class="code-comment"> Only if comment does not contains ShortcutKey
</span>                                <span class="code-keyword">if</span> (!tooltip.Contains(btn.ShorcutKeyString))
                                {
                                    tooltip += <span class="code-string">"</span><span class="code-string"> ("</span> + btn.ShorcutKeyString + <span class="code-string">"</span><span class="code-string">)"</span>;
                                }
                            }
                            <span class="code-keyword">else</span>
                            {
                                tooltip = <span class="code-string">"</span><span class="code-string"> ("</span> + btn.ShorcutKeyString + <span class="code-string">"</span><span class="code-string">)"</span>;
                            }
                        }
                    }
                }
&nbsp;
                <span class="code-keyword">return</span> tooltip;
            }
            set
            {
                _tooltip = <span class="code-keyword">value</span>;
            }
        }</pre>
&nbsp;<br>
Is it possible to add it in next release ?<br>
&nbsp;<br>
Thanks a lot for all the job,<br>
Sincerely<br></td>
											</tr><tr class="footer" style="vertical-align:top;">
												<td><a href="http://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs">Sign In</a>·<wbr><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4733803" title="View Thread">View&nbsp;Thread</a>·<wbr><a href="http://www.codeproject.com/Messages/4733803/Little-bugs-and-suggestions-for-improvement.aspx" title="Get permanent link">Permalink</a></td><td style="text-align:right;"><span id="MVF4733803" data-ref="3_4733803" class="rating-label" style="white-space:nowrap;"></span></td>
											</tr>
										</tbody></table></td>
									</tr>
								</tbody></table></td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4734394_h0" class="header hover-row">
						<td class="subject-line normal " width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr>
								<td width="38px" class="indent"><a name="xx4734394xx"></a><img height="16px" width="16px" align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_general.gif" alt="General"></td><td class="subject hover-container"><a class="message-link" name="4734394" parent="4733803" thread="4733803" href="http://www.codeproject.com/Messages/4734394/Re-Little-bugs-and-suggestions-for-improvement.aspx">Re: Little bugs and suggestions for improvement</a> <a onclick="return Pin(this);" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" title="Click to pin message"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pin.png" border="0" align="top" alt="Pin" width="13px" height="13px"></a></td><td class="icon"><img border="0" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/icn-member-16.gif" title="member" alt="member" height="16px"></td><td class="author"><a href="http://www.codeproject.com/script/Membership/View.aspx?mid=7592043">adriancs</a></td><td class="date">8-Jan-14  21:51&nbsp;</td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4734394_h1" class="content selected" style="display:none;">
						<td class="normal" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr valign="top">
								<td class="indent align-right" style="width:38px;"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t(2).gif" height="1px" width="38px" alt=""><div class="voteform vertical" ownerid="7592043" msgid="4734394" votingtype="GoodOrBad">

								</div></td><td class="text"><table border="0" cellpadding="0" cellspacing="5px" width="100%">
									<tbody><tr>
										<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tbody><tr>
												<td colspan="2">Which version of ribbon are you aiming for this bug fix?<br>
Try to have a look at the project's repository history at here:<br>
<a href="https://officeribbon.codeplex.com/SourceControl/list/changesets">https://officeribbon.codeplex.com/SourceControl/list/changesets</a>[<a href="https://officeribbon.codeplex.com/SourceControl/list/changesets" target="_blank" title="New Window">^</a>]<br></td>
											</tr><tr class="footer" style="vertical-align:top;">
												<td><a href="http://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs">Sign In</a>·<wbr><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4733803" title="View Thread">View&nbsp;Thread</a>·<wbr><a href="http://www.codeproject.com/Messages/4734394/Re-Little-bugs-and-suggestions-for-improvement.aspx" title="Get permanent link">Permalink</a></td><td style="text-align:right;"><span id="MVF4734394" data-ref="3_4734394" class="rating-label" style="white-space:nowrap;"></span></td>
											</tr>
										</tbody></table></td>
									</tr>
								</tbody></table></td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4734631_h0" class="header hover-row">
						<td class="subject-line normal " width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr>
								<td width="56px" class="indent"><a name="xx4734631xx"></a><img height="16px" width="16px" align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_general.gif" alt="General"></td><td class="subject hover-container"><a class="message-link" name="4734631" parent="4734394" thread="4733803" href="http://www.codeproject.com/Messages/4734631/Re-Little-bugs-and-suggestions-for-improvement.aspx">Re: Little bugs and suggestions for improvement</a> <a onclick="return Pin(this);" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" title="Click to pin message"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pin.png" border="0" align="top" alt="Pin" width="13px" height="13px"></a></td><td class="icon"><img border="0" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/icn-member-16.gif" title="member" alt="member" height="16px"></td><td class="author"><a href="http://www.codeproject.com/script/Membership/View.aspx?mid=4129817">papat2006</a></td><td class="date">9-Jan-14  2:57&nbsp;</td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4734631_h1" class="content selected" style="display:none;">
						<td class="normal" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr valign="top">
								<td class="indent align-right" style="width:56px;"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t(2).gif" height="1px" width="56px" alt=""><div class="voteform vertical" ownerid="4129817" msgid="4734631" votingtype="GoodOrBad">

								</div></td><td class="text"><table border="0" cellpadding="0" cellspacing="5px" width="100%">
									<tbody><tr>
										<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tbody><tr>
												<td colspan="2">Thanks for your answer.<br>
&nbsp;<br>
I detected this pb by when I upgrade my source from last release , to current published (07 Oct 2013) source.<br>
I have downloaded the trunk, and the only bug is event "Paint" never raised.<br>
&nbsp;<br>
Sorry for my false analysis.<br>
&nbsp;<br>
In my application, I'm going to keep ShortcutKey as I implemented.<br>
&nbsp;<br>
I still have a bug I find this morning : with a disabled "RibbonOrbMenuItem", when mouse is under, it opens as if enabled.<br>
&nbsp;<br>
Thanks for all.<br></td>
											</tr><tr class="footer" style="vertical-align:top;">
												<td><a href="http://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs">Sign In</a>·<wbr><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4733803" title="View Thread">View&nbsp;Thread</a>·<wbr><a href="http://www.codeproject.com/Messages/4734631/Re-Little-bugs-and-suggestions-for-improvement.aspx" title="Get permanent link">Permalink</a></td><td style="text-align:right;"><span id="MVF4734631" data-ref="3_4734631" class="rating-label" style="white-space:nowrap;"></span></td>
											</tr>
										</tbody></table></td>
									</tr>
								</tbody></table></td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4734636_h0" class="header hover-row">
						<td class="subject-line normal " width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr>
								<td width="74px" class="indent"><a name="xx4734636xx"></a><img height="16px" width="16px" align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_general.gif" alt="General"></td><td class="subject hover-container"><a class="message-link" name="4734636" parent="4734631" thread="4733803" href="http://www.codeproject.com/Messages/4734636/Re-Little-bugs-and-suggestions-for-improvement.aspx">Re: Little bugs and suggestions for improvement</a> <a onclick="return Pin(this);" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" title="Click to pin message"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pin.png" border="0" align="top" alt="Pin" width="13px" height="13px"></a></td><td class="icon"><img border="0" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/icn-member-16.gif" title="member" alt="member" height="16px"></td><td class="author"><a href="http://www.codeproject.com/script/Membership/View.aspx?mid=7592043">adriancs</a></td><td class="date">9-Jan-14  3:05&nbsp;</td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4734636_h1" class="content selected" style="display:none;">
						<td class="normal" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr valign="top">
								<td class="indent align-right" style="width:74px;"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t(2).gif" height="1px" width="74px" alt=""><div class="voteform vertical" ownerid="7592043" msgid="4734636" votingtype="GoodOrBad">

								</div></td><td class="text"><table border="0" cellpadding="0" cellspacing="5px" width="100%">
									<tbody><tr>
										<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tbody><tr>
												<td colspan="2">Hi, don't feel sorry. You have actually did a good job for fixing the bug <img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/smiley_smile.gif" align="top" alt="Smile | :)">  <br>
Its just that I'm not sure is your fixes already fixed by some team members  <img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/smiley_smile.gif" align="top" alt="Smile | :)"> <br></td>
											</tr><tr class="footer" style="vertical-align:top;">
												<td><a href="http://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs">Sign In</a>·<wbr><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4733803" title="View Thread">View&nbsp;Thread</a>·<wbr><a href="http://www.codeproject.com/Messages/4734636/Re-Little-bugs-and-suggestions-for-improvement.aspx" title="Get permanent link">Permalink</a></td><td style="text-align:right;"><span id="MVF4734636" data-ref="3_4734636" class="rating-label" style="white-space:nowrap;"></span></td>
											</tr>
										</tbody></table></td>
									</tr>
								</tbody></table></td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4732900_h0" class="header hover-row root">
						<td class="subject-line normal  vote-hi" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr>
								<td width="20px" class="indent"><a name="xx4732900xx"></a><img height="16px" width="16px" align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_question.gif" alt="Question"></td><td class="subject hover-container"><a class="message-link" name="4732900" parent="0" thread="4732900" href="http://www.codeproject.com/Messages/4732900/Possibility-for-code-available-in-VB.aspx">Possibility for code available in VB</a> <a onclick="return Pin(this);" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" title="Click to pin message"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pin.png" border="0" align="top" alt="Pin" width="13px" height="13px"></a></td><td class="icon"><img border="0" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/icn-member-16.gif" title="member" alt="member" height="16px"></td><td class="author"><a href="http://www.codeproject.com/script/Membership/View.aspx?mid=10085871">Rip_Diggler</a></td><td class="date">6-Jan-14  12:53&nbsp;</td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4732900_h1" class="content root selected" style="display:none;">
						<td class="normal" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr valign="top">
								<td class="indent align-right" style="width:20px;"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t(2).gif" height="1px" width="20px" alt=""><div class="voteform vertical" ownerid="10085871" msgid="4732900" votingtype="GoodOrBad">

								</div></td><td class="text"><table border="0" cellpadding="0" cellspacing="5px" width="100%">
									<tbody><tr>
										<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tbody><tr>
												<td colspan="2">I would love to use the ribbon control in my software application, and so far your guide is by far the best, however, my application is in VB and I was wondering if it was possible to get this in VB?  I am fairly new to this, and it would take ages for me to work out how to convert over.<br>
&nbsp;<br>
Thanks in advance.<br></td>
											</tr><tr class="footer" style="vertical-align:top;">
												<td><a href="http://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs">Sign In</a>·<wbr><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4732900" title="View Thread">View&nbsp;Thread</a>·<wbr><a href="http://www.codeproject.com/Messages/4732900/Possibility-for-code-available-in-VB.aspx" title="Get permanent link">Permalink</a></td><td style="text-align:right;"><span id="MVF4732900" data-ref="3_4732900" class="rating-label" style="white-space:nowrap;"><span>5.00/5 (1 vote)</span></span></td>
											</tr>
										</tbody></table></td>
									</tr>
								</tbody></table></td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4732919_h0" class="header hover-row">
						<td class="subject-line normal  vote-hi" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr>
								<td width="38px" class="indent"><a name="xx4732919xx"></a><img height="16px" width="16px" align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_answer.gif" alt="Answer"></td><td class="subject hover-container"><a class="message-link" name="4732919" parent="4732900" thread="4732900" href="http://www.codeproject.com/Messages/4732919/Re-Possibility-for-code-available-in-VB.aspx">Re: Possibility for code available in VB</a> <a onclick="return Pin(this);" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" title="Click to pin message"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pin.png" border="0" align="top" alt="Pin" width="13px" height="13px"></a></td><td class="icon"><img border="0" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/icn-member-16.gif" title="member" alt="member" height="16px"></td><td class="author"><a href="http://www.codeproject.com/script/Membership/View.aspx?mid=7592043">adriancs</a></td><td class="date">6-Jan-14  14:41&nbsp;</td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4732919_h1" class="content selected" style="display:none;">
						<td class="normal" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr valign="top">
								<td class="indent align-right" style="width:38px;"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t(2).gif" height="1px" width="38px" alt=""><div class="voteform vertical" ownerid="7592043" msgid="4732919" votingtype="GoodOrBad">

								</div></td><td class="text"><table border="0" cellpadding="0" cellspacing="5px" width="100%">
									<tbody><tr>
										<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tbody><tr>
												<td colspan="2">There is a VB.NET sample project in the <a href="https://officeribbon.codeplex.com/releases/view/106419">release of Ribbon (10 May 2013)</a>.<br></td>
											</tr><tr class="footer" style="vertical-align:top;">
												<td><a href="http://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs">Sign In</a>·<wbr><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4732900" title="View Thread">View&nbsp;Thread</a>·<wbr><a href="http://www.codeproject.com/Messages/4732919/Re-Possibility-for-code-available-in-VB.aspx" title="Get permanent link">Permalink</a></td><td style="text-align:right;"><span id="MVF4732919" data-ref="3_4732919" class="rating-label" style="white-space:nowrap;"><span>5.00/5 (1 vote)</span></span></td>
											</tr>
										</tbody></table></td>
									</tr>
								</tbody></table></td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4731312_h0" class="header hover-row root">
						<td class="subject-line normal " width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr>
								<td width="20px" class="indent"><a name="xx4731312xx"></a><img height="16px" width="16px" align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_question.gif" alt="Question"></td><td class="subject hover-container"><a class="message-link" name="4731312" parent="0" thread="4731312" href="http://www.codeproject.com/Messages/4731312/Can-I-create-Contextual-Tabs.aspx">Can I create Contextual Tabs</a> <a onclick="return Pin(this);" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" title="Click to pin message"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pin.png" border="0" align="top" alt="Pin" width="13px" height="13px"></a></td><td class="icon"><img border="0" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/icn-member-16.gif" title="member" alt="member" height="16px"></td><td class="author"><a href="http://www.codeproject.com/script/Membership/View.aspx?mid=2395689">hullihulli</a></td><td class="date">3-Jan-14  6:18&nbsp;</td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4731312_h1" class="content root selected" style="display:none;">
						<td class="normal" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr valign="top">
								<td class="indent align-right" style="width:20px;"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t(2).gif" height="1px" width="20px" alt=""><div class="voteform vertical" ownerid="2395689" msgid="4731312" votingtype="GoodOrBad">

								</div></td><td class="text"><table border="0" cellpadding="0" cellspacing="5px" width="100%">
									<tbody><tr>
										<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tbody><tr>
												<td colspan="2">Hi, another question:<br>
&nbsp;<br>
Can I create/use Contextual Tabs?<br>
&nbsp;<br>
Thanks<br>
hullihulli<br></td>
											</tr><tr class="footer" style="vertical-align:top;">
												<td><a href="http://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs">Sign In</a>·<wbr><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4731312" title="View Thread">View&nbsp;Thread</a>·<wbr><a href="http://www.codeproject.com/Messages/4731312/Can-I-create-Contextual-Tabs.aspx" title="Get permanent link">Permalink</a></td><td style="text-align:right;"><span id="MVF4731312" data-ref="3_4731312" class="rating-label" style="white-space:nowrap;"></span></td>
											</tr>
										</tbody></table></td>
									</tr>
								</tbody></table></td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4733008_h0" class="header hover-row">
						<td class="subject-line normal " width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr>
								<td width="38px" class="indent"><a name="xx4733008xx"></a><img height="16px" width="16px" align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_answer.gif" alt="Answer"></td><td class="subject hover-container"><a class="message-link" name="4733008" parent="4731312" thread="4731312" href="http://www.codeproject.com/Messages/4733008/Re-Can-I-create-Contextual-Tabs.aspx">Re: Can I create Contextual Tabs</a> <a onclick="return Pin(this);" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" title="Click to pin message"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pin.png" border="0" align="top" alt="Pin" width="13px" height="13px"></a></td><td class="icon"><img border="0" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/icn-member-16.gif" title="member" alt="member" height="16px"></td><td class="author"><a href="http://www.codeproject.com/script/Membership/View.aspx?mid=2940220">toATwork</a></td><td class="date">6-Jan-14  20:27&nbsp;</td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4733008_h1" class="content selected" style="display:none;">
						<td class="normal" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr valign="top">
								<td class="indent align-right" style="width:38px;"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t(2).gif" height="1px" width="38px" alt=""><div class="voteform vertical" ownerid="2940220" msgid="4733008" votingtype="GoodOrBad">

								</div></td><td class="text"><table border="0" cellpadding="0" cellspacing="5px" width="100%">
									<tbody><tr>
										<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tbody><tr>
												<td colspan="2">No. Thats not possible. Although it would be a cool feature!<br></td>
											</tr><tr class="footer" style="vertical-align:top;">
												<td><a href="http://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs">Sign In</a>·<wbr><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4731312" title="View Thread">View&nbsp;Thread</a>·<wbr><a href="http://www.codeproject.com/Messages/4733008/Re-Can-I-create-Contextual-Tabs.aspx" title="Get permanent link">Permalink</a></td><td style="text-align:right;"><span id="MVF4733008" data-ref="3_4733008" class="rating-label" style="white-space:nowrap;"></span></td>
											</tr>
										</tbody></table></td>
									</tr>
								</tbody></table></td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4730048_h0" class="header hover-row root">
						<td class="subject-line normal " width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr>
								<td width="20px" class="indent"><a name="xx4730048xx"></a><img height="16px" width="16px" align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_question.gif" alt="Question"></td><td class="subject hover-container"><a class="message-link" name="4730048" parent="0" thread="4730048" href="http://www.codeproject.com/Messages/4730048/The-OrbDropDown-is-always-empty.aspx">The OrbDropDown is always empty</a> <a onclick="return Pin(this);" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs#" title="Click to pin message"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/pin.png" border="0" align="top" alt="Pin" width="13px" height="13px"></a></td><td class="icon"><img border="0" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/icn-member-16.gif" title="member" alt="member" height="16px"></td><td class="author"><a href="http://www.codeproject.com/script/Membership/View.aspx?mid=314986">Grey|Pixels</a></td><td class="date">31-Dec-13  23:23&nbsp;</td>
							</tr>
						</tbody></table></td>
					</tr><tr id="F4730048_h1" class="content root selected" style="display:none;">
						<td class="normal" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%">
							<tbody><tr valign="top">
								<td class="indent align-right" style="width:20px;"><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t(2).gif" height="1px" width="20px" alt=""><div class="voteform vertical" ownerid="314986" msgid="4730048" votingtype="GoodOrBad">

								</div></td><td class="text"><table border="0" cellpadding="0" cellspacing="5px" width="100%">
									<tbody><tr>
										<td><table border="0" cellpadding="0" cellspacing="0" width="100%">
											<tbody><tr>
												<td colspan="2">Whenever I click the Orb, the drop down displayed is empty. Nothing shown. However, at design-time, the drop down correctly shows the added items. What should I do to make it work?<br>
<div class="signature">Contact me at agnel.kurian at gmail.com</div><br></td>
											</tr><tr class="footer" style="vertical-align:top;">
												<td><a href="http://www.codeproject.com/script/Membership/LogOn.aspx?rp=%2fArticles%2f364272%2fEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs">Sign In</a>·<wbr><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&sort=Position&spc=Relaxed&tid=4730048" title="View Thread">View&nbsp;Thread</a>·<wbr><a href="http://www.codeproject.com/Messages/4730048/The-OrbDropDown-is-always-empty.aspx" title="Get permanent link">Permalink</a></td><td style="text-align:right;"><span id="MVF4730048" data-ref="3_4730048" class="rating-label" style="white-space:nowrap;"></span></td>
											</tr>
										</tbody></table></td>
									</tr>
								</tbody></table></td>
							</tr>
						</tbody></table></td>
					</tr><tr>
						<td><img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/t(2).gif" border="0" width="1px" height="5px" alt=""></td>
					</tr>
				</tbody></table></td>
			</tr><tr>
				<td><table width="100%" cellpadding="2px" cellspacing="0">
					<tbody><tr class="footer">
						<td>Last Visit: 31-Dec-99  18:00 &nbsp; &nbsp; Last Update: 20-Mar-14  19:46</td><td><a href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&noise=3&prof=False&sort=Position&view=Normal&spc=Relaxed">Refresh</a></td><td style="text-align:right;white-space:nowrap;"><input id="_mbnUrl" type="hidden" value="/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&amp;df=90&amp;mpp=25&amp;noise=3&amp;prof=False&amp;sort=Position&amp;view=Normal&amp;spc=Relaxed&amp;fr=26"><span class="nav-link selected">1</span><a class="nav-link" name="Frm_HoverNL" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&noise=3&prof=False&sort=Position&view=Normal&spc=Relaxed&fr=26#xx0xx">2</a><a class="nav-link" name="Frm_HoverNL" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&noise=3&prof=False&sort=Position&view=Normal&spc=Relaxed&fr=51#xx0xx">3</a><a class="nav-link" name="Frm_HoverNL" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&noise=3&prof=False&sort=Position&view=Normal&spc=Relaxed&fr=76#xx0xx">4</a><a class="nav-link" name="Frm_HoverNL" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&noise=3&prof=False&sort=Position&view=Normal&spc=Relaxed&fr=101#xx0xx">5</a><a class="nav-link" name="Frm_HoverNL" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&noise=3&prof=False&sort=Position&view=Normal&spc=Relaxed&fr=126#xx0xx">6</a><a class="nav-link" name="Frm_HoverNL" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&noise=3&prof=False&sort=Position&view=Normal&spc=Relaxed&fr=151#xx0xx">7</a><a class="nav-link" name="Frm_HoverNL" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&noise=3&prof=False&sort=Position&view=Normal&spc=Relaxed&fr=176#xx0xx">8</a><a class="nav-link" name="Frm_HoverNL" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&noise=3&prof=False&sort=Position&view=Normal&spc=Relaxed&fr=201#xx0xx">9</a><a class="nav-link" name="Frm_HoverNL" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&noise=3&prof=False&sort=Position&view=Normal&spc=Relaxed&fr=226#xx0xx">10</a><a class="nav-link" name="Frm_HoverNL" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&noise=3&prof=False&sort=Position&view=Normal&spc=Relaxed&fr=251#xx0xx">11</a> <a class="nav-link" name="Frm_HoverNL" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?fid=1704255&df=90&mpp=25&noise=3&prof=False&sort=Position&view=Normal&spc=Relaxed&fr=26#xx0xx">Next »</a></td>
					</tr>
				</tbody></table></td>
			</tr>
		
	</tbody></table><p class="small-text"><img align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_general.gif" width="16px" height="16px" alt="General"> General &nbsp;&nbsp; <img align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_news.gif" width="16px" height="16px" alt="News"> News &nbsp;&nbsp; <img align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_idea.gif" width="16px" height="16px" alt="Suggestion"> Suggestion &nbsp;&nbsp; <img align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_question.gif" width="16px" height="16px" alt="Question"> Question &nbsp;&nbsp; <img align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_bug.gif" width="16px" height="16px" alt="Bug"> Bug &nbsp;&nbsp; <img align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_answer.gif" width="16px" height="16px" alt="Answer"> Answer &nbsp;&nbsp; <img align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_joke.gif" width="16px" height="16px" alt="Joke"> Joke &nbsp;&nbsp; <img align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_rant.gif" width="16px" height="16px" alt="Rant"> Rant &nbsp;&nbsp; <img align="top" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/msg_admin.gif" width="16px" height="16px" alt="Admin"> Admin &nbsp;&nbsp; </p><p class="small-text">Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.</p>

				

			</div>
			
		</div></td>
		<td>
			<div id="ctl00_RightSideBar" class="container-article-info">

				<div class="header">About Article</div>
				<div class="article-summary">

					
					

					
					

					
					<div class="summary"><span id="ctl00_ArticleDescr">Easily add ribbon to WinForm Application for .NET Framework 2.0, 3.5, 4.0 &amp; 4.5</span></div>

					<a id="ctl00_InfoBox_ParentLink"></a>

<table cellpadding="0" cellspacing="0" class="article-info">

	
	<tbody><tr><td>Type&nbsp;</td><td class="value"><a id="ctl00_InfoBox_TypeName" href="http://www.codeproject.com/script/Articles/Types.aspx?#Article">Article</a></td></tr>
	

	<tr><td>Licence&nbsp;</td><td class="value"><a href="http://www.opensource.org/licenses/ms-pl.html" title="The Microsoft Public License (Ms-PL)">Ms-PL</a></td></tr>

	

	<tr><td>First Posted&nbsp;</td><td nowrap="nowrap" class="value"><span itemprop="datePublished" content="2012-04-11">11 Apr 2012</span></td></tr>

	<tr><td>Views&nbsp;</td><td class="value">304,946</td></tr>

	
	<tr><td>Downloads&nbsp;</td><td class="value">28,888</td></tr>
		

	
	<tr><td>Bookmarked&nbsp;</td><td class="value">424 times</td></tr>
	

	

	
	
	
	<tr><td colspan="2"></td>
	</tr>
	
	
</tbody></table>

					<div class="tags"> 
					<span id="ctl00_TagsList_TagWrp" class="tags">
	
	
	
	<span id="ctl00_TagsList_VisibleTags"><span class="t"><a rel="tag" href="http://www.codeproject.com/Tags/C--hash--">C#</a></span><span class="t"><a rel="tag" href="http://www.codeproject.com/Tags/Beginner">Beginner</a></span><span class="t"><a rel="tag" href="http://www.codeproject.com/Tags/Ribbon">Ribbon</a></span></span> 

	
	
</span>

					</div>

					<div class="nowrap align-left">
						 

<a id="ctl00_ActionLinks_PrintLnk" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?display=Print">
	<img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/print.gif" width="46px" height="46px" style="border:0">
</a>

<a id="ctl00_ActionLinks_MailLink" href="http://www.codeproject.com/script/common/TellFriend.aspx?obtid=2&obid=364272">
	<img src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/email.gif" width="46px" height="46px" style="border:0">
</a>
					</div>

					<div>
						

<div class="social-bookmarks">
<span class="linkedin"><script src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/in.js" type="text/javascript">
lang: en_US
</script>
<span class="IN-widget" style="line-height: 1; vertical-align: baseline; display: inline-block; text-align: center;"><span style="padding: 0px !important; margin: 0px !important; text-indent: 0px !important; display: inline-block !important; vertical-align: baseline !important; font-size: 1px !important;"><span id="li_ui_li_gen_1395395207258_0"><a id="li_ui_li_gen_1395395207258_0-link" href="javascript:void(0);"><span id="li_ui_li_gen_1395395207258_0-logo">in</span><span id="li_ui_li_gen_1395395207258_0-title"><span id="li_ui_li_gen_1395395207258_0-mark"></span><span id="li_ui_li_gen_1395395207258_0-title-text">Share</span></span></a></span></span><span style="padding: 0px !important; margin: 0px !important; text-indent: 0px !important; display: inline-block !important; vertical-align: baseline !important; font-size: 1px !important;"><span id="li_ui_li_gen_1395395207277_1-container" class="IN-right"><span id="li_ui_li_gen_1395395207277_1" class="IN-right"><span id="li_ui_li_gen_1395395207277_1-inner" class="IN-right"><span id="li_ui_li_gen_1395395207277_1-content" class="IN-right">0</span></span></span></span></span></span><script type="IN/Share+init" data-counter="right" data-showzero="true"></script></span>
<span class="google"><div id="___plusone_0" style="text-indent: 0px; margin: 0px; padding: 0px; background-color: transparent; border-style: none; float: none; line-height: normal; font-size: 1px; vertical-align: baseline; display: inline-block; width: 90px; height: 20px; background-position: initial initial; background-repeat: initial initial;"><iframe frameborder="0" hspace="0" marginheight="0" marginwidth="0" scrolling="no" style="position: static; top: 0px; width: 90px; margin: 0px; border-style: none; left: 0px; visibility: visible; height: 20px;" tabindex="0" vspace="0" width="100%" id="I0_1395395207521" name="I0_1395395207521" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/fastbutton.htm" data-gapiattached="true" title="+1"></iframe></div></span>
<span id="fb-wrap" class="facebook" style=";overflow:hidden"><div id="fb-root" class=" fb_reset"><div style="position: absolute; top: -10000px; height: 0px; width: 0px;"><div><iframe name="fb_xdm_frame_http" frameborder="0" allowtransparency="true" scrolling="no" id="fb_xdm_frame_http" aria-hidden="true" title="Facebook Cross Domain Communication Frame" tab-index="-1" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/LEdxGgtB9cN.htm" style="border: none;"></iframe><iframe name="fb_xdm_frame_https" frameborder="0" allowtransparency="true" scrolling="no" id="fb_xdm_frame_https" aria-hidden="true" title="Facebook Cross Domain Communication Frame" tab-index="-1" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/LEdxGgtB9cN(1).htm" style="border: none;"></iframe></div></div><div style="position: absolute; top: -10000px; height: 0px; width: 0px;"><div></div></div></div><div class="fb-like fb_iframe_widget" data-href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false" data-font="segoe ui" fb-xfbml-state="rendered" fb-iframe-plugin-query="app_id=&amp;font=segoe%20ui&amp;href=http%3A%2F%2Fwww.codeproject.com%2FArticles%2F364272%2FEasily-Add-a-Ribbon-into-a-WinForms-Application-Cs&amp;layout=button_count&amp;locale=en_GB&amp;sdk=joey&amp;send=false&amp;show_faces=false&amp;width=450"><span style="vertical-align: bottom; width: 78px; height: 20px;"><iframe name="f34722e03" width="450px" height="1000px" frameborder="0" allowtransparency="true" scrolling="no" title="fb:like Facebook Social Plugin" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/like.htm" class="" style="border: none; visibility: visible; width: 78px; height: 20px;"></iframe></span></div></span>
<span class="twitter"><iframe id="twitter-widget-0" scrolling="no" frameborder="0" allowtransparency="true" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/tweet_button.1393899192.htm" class="twitter-share-button twitter-tweet-button twitter-count-horizontal" title="Twitter Tweet Button" data-twttr-rendered="true" style="width: 110px; height: 20px;"></iframe></span>
</div>
					</div> 

					
				</div>

				<div style="width:160px;margin: 10px auto;">
					<div class="msg-160x600" data-format="160x600" data-type="ad" data-publisher="lqm.codeproject.site" data-zone="ros" data-tags="C#, Beginner, Ribbon,rating4.5"><iframe id="dmad4" allowtransparency="false" style="z-index:10" width="160" height="600" marginwidth="0" marginheight="0" frameborder="0" scrolling="no"></iframe></div>
				</div>

				
<div class="padded-top">
<div class="header">Top News</div>

<p><a id="ctl00_News_News_ctl01_Link" href="http://www.businessinsider.com/microsoft-prepares-attack-on-evernote-2014-3">Microsoft prepares its attack on Evernote</a></p>

Get the <a id="ctl00_News_News_ctl02_Subscribe" href="http://www.codeproject.com/Feature/Insider/">Insider News</a> free each morning.
</div>

				

				<div class="padded-top">
					
	<div id="ctl00_RelatedVideos_RelatedResults_ctl00_header" class="header">Related Videos</div>
	<div class="content-list align-center">	
	
	<div class="content-list-item">
		<a id="ctl00_RelatedVideos_RelatedResults_ctl01_Link" class="title" href="http://codeproject.tv/video/7613872/using_the_sectionview_control"><img id="ctl00_RelatedVideos_RelatedResults_ctl01_Thumbnail" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/and-thumbnail.png" style="border-style:None;width:125px;border-width:0px;"></a>
		
	</div>
	
	<div class="content-list-item">
		<a id="ctl00_RelatedVideos_RelatedResults_ctl02_Link" class="title" href="http://codeproject.tv/video/5012753/devexpress_windows_inspired_applications"><img id="ctl00_RelatedVideos_RelatedResults_ctl02_Thumbnail" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/MSstyleAppsWizardl.png" style="border-style:None;width:125px;border-width:0px;"></a>
		
	</div>
	
	</div>
	

				</div>
				<div class="padded-top">
					
	<div id="ctl00_RelatedArticles_RelatedResults_ctl00_header" class="header">Related Articles</div>
	<div class="content-list">	
	
	<div class="content-list-item">
		<a id="ctl00_RelatedArticles_RelatedResults_ctl02_Link" class="title" href="http://www.codeproject.com/Articles/25907/A-Professional-Ribbon-You-Will-Use-Now-with-orb">A Professional Ribbon You Will Use (Now with orb!)</a>
		
	</div>
	
	<div class="content-list-item">
		<a id="ctl00_RelatedArticles_RelatedResults_ctl03_Link" class="title" href="http://www.codeproject.com/Articles/62427/Windows-Ribbon-for-WinForms-Part-First-WinForms">Windows Ribbon for WinForms, Part 3 - First WinForms Ribbon Application</a>
		
	</div>
	
	<div class="content-list-item">
		<a id="ctl00_RelatedArticles_RelatedResults_ctl04_Link" class="title" href="http://www.codeproject.com/Articles/206409/Ribbon-with-Cplusplus-Part-Introduction-to-the-W">Ribbon with C++, Part 1: Introduction to the Windows Ribbon Framework</a>
		
	</div>
	
	<div class="content-list-item">
		<a id="ctl00_RelatedArticles_RelatedResults_ctl05_Link" class="title" href="http://www.codeproject.com/Articles/55599/Windows-Ribbon-for-WinForms-Part-Table-of-Conten">Windows Ribbon for WinForms, Part 0 – Table of Contents</a>
		
	</div>
	
	<div class="content-list-item">
		<a id="ctl00_RelatedArticles_RelatedResults_ctl06_Link" class="title" href="http://www.codeproject.com/Articles/62533/Windows-Ribbon-for-WinForms-Part-QuickAccessToo">Windows Ribbon for WinForms, Part 20 – QuickAccessToolbar</a>
		
	</div>
	
	<div class="content-list-item">
		<a id="ctl00_RelatedArticles_RelatedResults_ctl07_Link" class="title" href="http://www.codeproject.com/Articles/62418/Windows-Ribbon-for-WinForms-Part-Basic-Ribbon-Wr">Windows Ribbon for WinForms, Part 2 - Basic Ribbon Wrapper</a>
		
	</div>
	
	<div class="content-list-item">
		<a id="ctl00_RelatedArticles_RelatedResults_ctl08_Link" class="title" href="http://www.codeproject.com/Articles/62507/Windows-Ribbon-for-WinForms-Part-Spinner">Windows Ribbon for WinForms, Part 7 – Spinner</a>
		
	</div>
	
	<div class="content-list-item">
		<a id="ctl00_RelatedArticles_RelatedResults_ctl09_Link" class="title" href="http://www.codeproject.com/Articles/145099/A-Quick-Guide-to-Silverlight-Ribbon-Controls-Part">A Quick Guide to Silverlight Ribbon Controls (Part - 1)</a>
		
	</div>
	
	<div class="content-list-item">
		<a id="ctl00_RelatedArticles_RelatedResults_ctl10_Link" class="title" href="http://www.codeproject.com/Articles/32785/Windows-Ribbon-The-Time-Has-Come-Your-Win-Appl">Windows 7 Ribbon: The Time Has Come, Your Win32 Application Will Change</a>
		
	</div>
	
	<div class="content-list-item">
		<a id="ctl00_RelatedArticles_RelatedResults_ctl11_Link" class="title" href="http://www.codeproject.com/Articles/62528/Windows-Ribbon-for-WinForms-Part-ContextPopup">Windows Ribbon for WinForms, Part 18 – ContextPopup</a>
		
	</div>
	
	<div class="content-list-item">
		<a id="ctl00_RelatedArticles_RelatedResults_ctl12_Link" class="title" href="http://www.codeproject.com/Articles/62412/Windows-Ribbon-for-WinForms-Part-Introduction">Windows Ribbon for WinForms, Part 1 – Introduction</a>
		
	</div>
	
	<div class="content-list-item">
		<a id="ctl00_RelatedArticles_RelatedResults_ctl13_Link" class="title" href="http://www.codeproject.com/Articles/35143/Ribbon-style-Two-level-Tab-Bar-for-Dialog-Boxes-in">Ribbon-style Two-level Tab Bar for Dialog Boxes in WTL</a>
		
	</div>
	
	<div class="content-list-item">
		<a id="ctl00_RelatedArticles_RelatedResults_ctl14_Link" class="title" href="http://www.codeproject.com/Articles/43778/Zeta-Scheduler">Zeta Scheduler</a>
		
	</div>
	
	<div class="content-list-item">
		<a id="ctl00_RelatedArticles_RelatedResults_ctl15_Link" class="title" href="http://www.codeproject.com/Articles/54116/Relook-your-Old-and-New-Native-Applications-with-a">Relook your Old and New Native Applications with a Ribbon UI under Vista or Windows 7 (WTL)</a>
		
	</div>
	
	<div class="content-list-item">
		<a id="ctl00_RelatedArticles_RelatedResults_ctl16_Link" class="title" href="http://www.codeproject.com/Articles/23199/WPF-C-Ribbon-Control-Library">WPF C# Ribbon Control Library</a>
		
	</div>
	
	<div class="content-list-item">
		<a id="ctl00_RelatedArticles_RelatedResults_ctl17_Link" class="title" href="http://www.codeproject.com/Articles/62511/Windows-Ribbon-for-WinForms-Part-Working-With-I">Windows Ribbon for WinForms, Part 10 – Working With Images</a>
		
	</div>
	
	<div class="content-list-item">
		<a id="ctl00_RelatedArticles_RelatedResults_ctl18_Link" class="title" href="http://www.codeproject.com/Articles/23343/A-Graphical-WPF-Ribbon-Control-Builder">A Graphical WPF Ribbon Control Builder</a>
		
	</div>
	
	<div class="content-list-item">
		<a id="ctl00_RelatedArticles_RelatedResults_ctl19_Link" class="title" href="http://www.codeproject.com/Articles/62437/Windows-Ribbon-for-WinForms-Part-Tabs-Groups-and">Windows Ribbon for WinForms, Part 6 – Tabs, Groups and HelpButton</a>
		
	</div>
	
	<div class="content-list-item">
		<a id="ctl00_RelatedArticles_RelatedResults_ctl20_Link" class="title" href="http://www.codeproject.com/Articles/62510/Windows-Ribbon-for-WinForms-Part-Changing-Ribbon">Windows Ribbon for WinForms, Part 9 – Changing Ribbon Colors</a>
		
	</div>
	
	<div class="content-list-item">
		<a id="ctl00_RelatedArticles_RelatedResults_ctl21_Link" class="title" href="http://www.codeproject.com/Articles/62524/Windows-Ribbon-for-WinForms-Part-Use-Ribbon-as">Windows Ribbon for WinForms, Part 15 – Use Ribbon as External DLL</a>
		
	</div>
	
	</div>
	

				</div>
				<div class="padded-top">
					
	<div id="ctl00_RelatedLibrary_RelatedResults_ctl00_header" class="header">Related Research</div>
	<div class="content-list align-center">	
	
	<div class="content-list-item">
		<div><img id="ctl00_RelatedLibrary_RelatedResults_ctl01_Thumb" class="shadow" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/essential-guide-to-mobile-app-testing.png" style="border-width:0px;"></div>
		<a id="ctl00_RelatedLibrary_RelatedResults_ctl01_Link" class="title" href="http://www.codeproject.com/ResearchLibrary/19/The-Essential-Guide-to-Mobile-App-Testing-Tips-for">The Essential Guide to Mobile App Testing: Tips for Developers in USA &amp; Canada</a>
		
	</div>
	
	<div class="content-list-item">
		<div><img id="ctl00_RelatedLibrary_RelatedResults_ctl02_Thumb" class="shadow" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/LibraryItemThumbnail_45_100x124.png" style="border-width:0px;"></div>
		<a id="ctl00_RelatedLibrary_RelatedResults_ctl02_Link" class="title" href="http://www.codeproject.com/ResearchLibrary/45/Ten-Tips-of-Web-App-Testing">Ten Tips of Web App Testing</a>
		
	</div>
	
	<div class="content-list-item">
		<div><img id="ctl00_RelatedLibrary_RelatedResults_ctl03_Thumb" class="shadow" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/LibraryItemThumbnail_31_100x129.png" style="border-width:0px;"></div>
		<a id="ctl00_RelatedLibrary_RelatedResults_ctl03_Link" class="title" href="http://www.codeproject.com/ResearchLibrary/31/Protecting-Android-Applications-with-Secure-Code-S">Protecting Android™ Applications with Secure Code Signing Certificates</a>
		
	</div>
	
	<div class="content-list-item">
		<div><img id="ctl00_RelatedLibrary_RelatedResults_ctl04_Thumb" class="shadow" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/in-the-wild-testing.png" style="border-width:0px;"></div>
		<a id="ctl00_RelatedLibrary_RelatedResults_ctl04_Link" class="title" href="http://www.codeproject.com/ResearchLibrary/18/In-The-Wild-Testing-How-to-Ensure-Your-Apps-Work-i">In-The-Wild Testing: How to Ensure Your Apps Work in the Real World</a>
		
	</div>
	
	</div>
	

				</div>

				
				
			</div>
		</td>
		</tr></tbody></table>

		
		<div class="theme1-background" style="height:2px"></div>

		<div class="extended tiny-text">
			<div class="row">
				<div class="float-left">
					<a id="ctl00_PermaLink" itemprop="url" href="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/Easily Add a Ribbon into a WinForms Application (C#) - CodeProject.htm">Permalink</a> | 
					<a id="ctl00_AdvertiseLink" href="http://developermedia.com/">Advertise </a> |
					<a id="ctl00_PrivacyLink" href="http://www.codeproject.com/info/privacy.aspx">Privacy</a> |
					<a id="ctl00_Mobile" rel="nofollow" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?display=Mobile">Mobile</a>
					<br>
								
					
					Web02 |
					2.8.140315.1 |
					Last Updated 23 Nov 2013								
				</div>
				<div class="float-right align-right">
					Article Copyright 2012 by Member 231420, toATwork, adriancs, Michael Spradlin<br>Everything else
					Copyright © <a href="mailto:webmaster@codeproject.com">CodeProject</a>, 1999-2014 <br>
					<a id="ctl00_TermsOfUseLink" href="http://www.codeproject.com/info/TermsOfUse.aspx">Terms of Use</a>
				</div>

				


<div class="page-width">
Layout: <a id="ctl00_PageWidth_FixedT" title="Fixed width layout" rel="nofollow" class=" active" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?PageFlow=FixedWidth">fixed</a>
|
<a id="ctl00_PageWidth_FluidT" title="Fluid layout" rel="nofollow" href="http://www.codeproject.com/Articles/364272/Easily-Add-a-Ribbon-into-a-WinForms-Application-Cs?PageFlow=Fluid">fluid</a>
</div>



			</div>
		</div>
		

		<br clear="all">
		
			

	</div> 
	</div>
</div>


<div style="display:none;" id="lqm_AdTable">
	
</div>




<script type="text/javascript" language="Javascript" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/jquery.min.js"></script><script type="text/javascript">//<![CDATA[
if (typeof jQuery == 'undefined') {
    document.write(unescape("%3Cscript src='/script/JS/jquery-1.6.2.min.js' type='text/javascript' %3E%3C/script%3E"));
}//]]></script>
<script type="text/javascript" language="Javascript" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/article.min.js"></script>
<script type="text/javascript" language="Javascript" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/navbar.min.js"></script>
<script type="text/javascript" language="Javascript" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/Notifications.min.js"></script>
<script type="text/javascript" language="Javascript">//<![CDATA[
$(document).ready(function() { anchorAnimate(); });
(function(d, s, id) {  var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs);}(document, 'script', 'facebook-jssdk'));
(function() {var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })();
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){ js=d.createElement(s);js.id=id; js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
var DMReportsOK = null;function showDMAlert() {   var $div = $('div.msg-728x90');  $div.append($('<img src="/images/alert-top-block.gif" style="right:0;position:absolute;z-index:0">'));}function onDMcallBack(event){   if (event.originalEvent) event = event.originalEvent;   jQuery.support.cors = true;   if (event.data === 'DM:Disabled') DMReportsOK = false;   else if (event.data === 'DM:Enabled' || event.data=='DM-enabled') DMReportsOK = true;   else if (typeof event.data == 'object' && event.data.sender &&             event.data.sender == 'DeveloperMedia' && event.data.application=='apps' &&            event.data.action == 'reportEnabled') {            DMReportsOK = event.data.data.eanbled;   }}function checkLoaded() {  var recordCheck  = false; var showBlockMsg = false; var block        = 'None'; if (!DMReportsOK && block == 'None' && typeof DMAds === 'undefined')     block = 'ResourceBlocked'; if (DMReportsOK === true) block = 'None'; else if (DMReportsOK === false) block = 'DomModified'; if (recordCheck) {  $.ajax({ url:'/script/AdServe/Ajax/VS.aspx',data:{'adbm':block}, cache:false, async:true }); } if (showBlockMsg && block != 'None')    showDMAlert();}$(document).ready(function() {  $(window).bind('message', onDMcallBack);  setTimeout(checkLoaded, 4000);});
$(function ()
                {
                    $('.oauth').click(function () {
                        $this = $(this);
                        href = $this.attr('href');
                        var myWindow = window.open(href, 'popup',
                                    'width=800,height=600,location=0,menubar=0,resizeable=0,scrollbars=0,toolbar=0');
                        myWindow.focus();
                        var timer = setInterval(function () {
                                        if (myWindow.closed) {
                                            clearInterval(timer);
                                            // window.location.reload(); // May do a POST reload, shows a warning
                                            window.location = window.location; // force a GET reload
                                        }
                                    }, 200);
                        return false;
                    });
                });
var oSrchFlt = false, oSrchBox=false,srchBoxFoc=false;
$(document).ready(function() {
 if(InitWatermark)InitWatermark('sb_tb', 'Search for articles, questions, tips');
 var sbar = $('#sb_tb'); 
 var sfilter = $('#SearchFilter');
 if (sbar && sfilter) {
  sfilter.removeClass('popup'); sfilter.hide();
  sbar.blur(function() {
 if (!oSrchFlt)sfilter.hide();
 srchBoxFoc=false;
 /*sbar.animate( { width:'210px' }, { queue:false, duration:300 });
*/ });
  sbar.focus(function() {
 oSrchFlt=false;srchBoxFoc=true;
 sfilter.show();
 /*sbar.animate( { width:'500px' }, { queue:false, duration:300 });
*/ });
  sbar.mouseleave(function() { oSrchBox=false; });
  sbar.mouseover(function() { oSrchBox=true; });
  sfilter.mouseleave(function() { oSrchFlt=false; if (!srchBoxFoc&&!oSrchBox)sfilter.hide();});
  sfilter.mouseover(function() { oSrchFlt=true; });
 }
});
$('#clear-rate_ctl00_RateArticle_RSU').click(function () {    $('#ctl00_RateArticle_RSU').hide(); return false;});$("#ctl00_RateArticle_RateItemWrapper")   .removeClass("container-rating")   .hover( function() { $('#ctl00_RateArticle_RSU').fadeIn('fast'); },            function() { $('#ctl00_RateArticle_RSU').fadeOut('fast'); } );
function PostBack_ctl00_RateArticle_RateItemWrapper() {
  return rateItem(364272,2,1,true,true,3,'LargeStars');
}

                        function getVotesHistogram(objectId, objectTypeId, containerId, loadingId) {
                            if (!$('#' + containerId).attr('alreadyRequested')){
                                $.ajax({
                                    url: '/script/Ratings/Ajax/Histogram.aspx?obid=' + objectId + '&obtid='+objectTypeId,
                                    success: function (data) {
                                        $('#' + containerId).html(data);
                                        $('#' + loadingId).hide();
                                    }
                                });
                                $('#' + containerId).attr('alreadyRequested', 'true');
                            }
                        }
$(document).ready(function() {   new starRating('#ctl00_RateArticle_VoteFormDiv', PostBack_ctl00_RateArticle_RateItemWrapper,'ctl00_RateArticle');
  $('#ctl00_RateArticle_RB').mouseenter(function() {     getVotesHistogram(364272,2   ,'ctl00_RateArticle_Histogram','ctl00_RateArticle_Loading');  })})
$(document).ready(function() { $('#ctl00_RateArticle_SubmitRateBtn').hide(); });
$(document).ready(function() { $('#ctl00_RateArticle_SubmitRateBtn').hide(); });function ChkRtctl00_RateArticle(){}

forumDir = '/script/Forums/';
staticServer = 'http://s.codeproject.com';
allowReporting = false;
allowRating = false;
allowRatingDisplay = true;
var smoothScroll = true;
Selected        = -1;
oldTitle        = document.title;
minMessageScore = 1;
minMessageScore = 5;
abuseScore      = -2;
spamScore       = -1;
getRatingUrl    = '/script/Ratings/Ajax/GetRatings.aspx';
noiseThreshold  = 3;
getRatingRefKey = 'obrs';


//]]>
</script>



<canvas id="cv1" width="1px" height="1px" style="position:absolute;left:0;top:0;pointer-events:none"></canvas><canvas id="cv2" width="1px" height="1px" style="position:absolute;left:0;top:0;pointer-events:none"></canvas><iframe name="oauth2relay811286671" id="oauth2relay811286671" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/postmessageRelay.htm" tabindex="-1" style="width: 1px; height: 1px; position: absolute; top: -100px;"></iframe><iframe width="1" height="1" src="./Easily Add a Ribbon into a WinForms Application (C#) - CodeProject_files/saved_resource.htm" id="ifr" style="display: none;"></iframe></body></html>